diff options
Diffstat (limited to 'apps/settings/js/usersettings.js')
-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)) { |