diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-03-30 13:09:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 13:09:34 +0200 |
commit | b2072cd6fca3302cd621ef849b8e5e59b42665a8 (patch) | |
tree | 2b76986807773cffa3d268bd1b7d59db097cc614 | |
parent | ba1d671055cac118a416e72ba642da2730c038cb (diff) | |
parent | 3afeb5c90882a06b70bf611b0773ee4337b1e4b4 (diff) | |
download | nextcloud-server-b2072cd6fca3302cd621ef849b8e5e59b42665a8.tar.gz nextcloud-server-b2072cd6fca3302cd621ef849b8e5e59b42665a8.zip |
Merge pull request #26371 from nextcloud/backport/26370/stable21
[stable21] Remove notifications when retesting profile field input
-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)) { |