diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-30 10:18:23 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-03-30 09:27:17 +0000 |
commit | 3afeb5c90882a06b70bf611b0773ee4337b1e4b4 (patch) | |
tree | e604a62c6412b8111d9096e8754148d5079b296f /apps/settings | |
parent | 3ebe3a0e5f9dfe558faab3b445c0b69eb35a733a (diff) | |
download | nextcloud-server-3afeb5c90882a06b70bf611b0773ee4337b1e4b4.tar.gz nextcloud-server-3afeb5c90882a06b70bf611b0773ee4337b1e4b4.zip |
Remove notifications when retesting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/js/usersettings.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/settings/js/usersettings.js b/apps/settings/js/usersettings.js index a02aae6fb6a..21a122094f5 100644 --- a/apps/settings/js/usersettings.js +++ b/apps/settings/js/usersettings.js @@ -10,6 +10,8 @@ (function() { 'use strict'; + var errorNotification; + /** * Model for storing and saving user settings * @@ -25,8 +27,12 @@ return null; } + if (errorNotification) { + errorNotification.hide(); + } + if (data.status && data.status === 'error') { - OC.Notification.show(data.data.message, { type: 'error' }); + errorNotification = OC.Notification.show(data.data.message, { type: 'error' }); } if (_.isUndefined(data.data)) { |