Skip to content

Commit

Permalink
Merge pull request #26371 from nextcloud/backport/26370/stable21
Browse files Browse the repository at this point in the history
[stable21] Remove notifications when retesting profile field input
  • Loading branch information
nickvergessen authored Mar 30, 2021
2 parents ba1d671 + 3afeb5c commit b2072cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/settings/js/usersettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
(function() {
'use strict';

var errorNotification;

/**
* Model for storing and saving user settings
*
Expand All @@ -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)) {
Expand Down

0 comments on commit b2072cd

Please sign in to comment.