diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-23 15:56:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 15:56:18 -0600 |
commit | 71c80433c2921d13c4dc35f5dad7fba2efe00ba5 (patch) | |
tree | 57566c63b2b27c2d20ed8c69a028933f64e3028c /apps/files_external/js | |
parent | a5a29ee27a8e93d83f8916f4f0a7857c880e1156 (diff) | |
parent | 40228c0c2b17c800fa5e227b4d2e8d074da82075 (diff) | |
download | nextcloud-server-71c80433c2921d13c4dc35f5dad7fba2efe00ba5.tar.gz nextcloud-server-71c80433c2921d13c4dc35f5dad7fba2efe00ba5.zip |
Merge pull request #4007 from nextcloud/backport-27155
Change showTemporary notifications for closable ones
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/statusmanager.js | 16 |
1 files changed, 11 insertions, 5 deletions
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; |