Skip to content
Snippets Groups Projects
Unverified Commit b2072cd6 authored by Joas Schilling's avatar Joas Schilling Committed by GitHub
Browse files

Merge pull request #26371 from nextcloud/backport/26370/stable21

[stable21] Remove notifications when retesting profile field input
parents ba1d6710 3afeb5c9
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
(function() { (function() {
'use strict'; 'use strict';
var errorNotification;
/** /**
* Model for storing and saving user settings * Model for storing and saving user settings
* *
...@@ -25,8 +27,12 @@ ...@@ -25,8 +27,12 @@
return null; return null;
} }
if (errorNotification) {
errorNotification.hide();
}
if (data.status && data.status === 'error') { 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)) { if (_.isUndefined(data.data)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment