diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-30 10:18:23 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-30 10:18:23 +0200 |
commit | ebc3b1f8029ba71d153920c1e712cea25eed7783 (patch) | |
tree | 14df314a0276451bf3ad14420fb04237d2d9fd53 /apps/settings | |
parent | 739fb89c3e2f942e9396e8b00b4dad78d3bd425c (diff) | |
download | nextcloud-server-ebc3b1f8029ba71d153920c1e712cea25eed7783.tar.gz nextcloud-server-ebc3b1f8029ba71d153920c1e712cea25eed7783.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)) { |