From 40228c0c2b17c800fa5e227b4d2e8d074da82075 Mon Sep 17 00:00:00 2001 From: noveens Date: Wed, 15 Feb 2017 01:56:00 +0530 Subject: added quit option in commentstabview.js added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke --- apps/files_external/js/statusmanager.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'apps/files_external/js') diff --git a/apps/files_external/js/statusmanager.js b/apps/files_external/js/statusmanager.js index 782b0b08288..ae4ce989130 100644 --- a/apps/files_external/js/statusmanager.js +++ b/apps/files_external/js/statusmanager.js @@ -157,7 +157,9 @@ OCA.External.StatusManager = { }, error: function (jqxhr, state, error) { self.mountPointList = []; - OC.Notification.showTemporary(t('files_external', 'Couldn\'t get the list of external mount points: {type}', {type: error})); + OC.Notification.show(t('files_external', 'Couldn\'t get the list of external mount points: {type}', + {type: error}), {type: 'error'} + ); }, complete: function () { self.isGetMountPointListRunning = false; @@ -265,7 +267,9 @@ OCA.External.StatusManager = { // check if we have a list first if (list === undefined && !self.emptyWarningShown) { self.emptyWarningShown = true; - OC.Notification.showTemporary(t('files_external', 'Couldn\'t get the list of Windows network drive mount points: empty response from the server')); + OC.Notification.show(t('files_external', 'Couldn\'t get the list of Windows network drive mount points: empty response from the server'), + {type: 'error'} + ); return; } if (list && list.length > 0) { @@ -295,7 +299,9 @@ OCA.External.StatusManager = { } }); if (showNotification) { - OC.Notification.showTemporary(t('files_external', 'Some of the configured external mount points are not connected. Please click on the red row(s) for more information')); + OC.Notification.show(t('files_external', 'Some of the configured external mount points are not connected. Please click on the red row(s) for more information'), + {type: 'error'} + ); } } }); @@ -414,14 +420,14 @@ OCA.External.StatusManager = { } }, success: function (data) { - OC.Notification.showTemporary(t('files_external', 'Credentials saved')); + OC.Notification.show(t('files_external', 'Credentials saved'), {type: 'error'}); dialog.ocdialog('close'); /* Trigger status check again */ OCA.External.StatusManager.recheckConnectivityForMount([OC.basename(data.mountPoint)], true); }, error: function () { $('.oc-dialog-close').show(); - OC.Notification.showTemporary(t('files_external', 'Credentials saving failed')); + OC.Notification.show(t('files_external', 'Credentials saving failed'), {type: 'error'}); } }); return false; -- cgit v1.2.3