summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-03-30 11:25:27 +0200
committerGitHub <noreply@github.com>2021-03-30 11:25:27 +0200
commit76b4976f37e1b133194423886489fc3ef3bb0e78 (patch)
treead509e395884fae69b42c81bfeec1ccd5251ee80
parent582ab4129dd80a7b05c9cf0a690dce6607bb016c (diff)
parentebc3b1f8029ba71d153920c1e712cea25eed7783 (diff)
downloadnextcloud-server-76b4976f37e1b133194423886489fc3ef3bb0e78.tar.gz
nextcloud-server-76b4976f37e1b133194423886489fc3ef3bb0e78.zip
Merge pull request #26370 from nextcloud/bugfix/noid/kill-notifications-when-retesting
Remove notifications when retesting profile field input
-rw-r--r--apps/settings/js/usersettings.js8
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)) {