Skip to content

Commit b2072cd

Browse files
Merge pull request #26371 from nextcloud/backport/26370/stable21
[stable21] Remove notifications when retesting profile field input
2 parents ba1d671 + 3afeb5c commit b2072cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/settings/js/usersettings.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
(function() {
1111
'use strict';
1212

13+
var errorNotification;
14+
1315
/**
1416
* Model for storing and saving user settings
1517
*
@@ -25,8 +27,12 @@
2527
return null;
2628
}
2729

30+
if (errorNotification) {
31+
errorNotification.hide();
32+
}
33+
2834
if (data.status && data.status === 'error') {
29-
OC.Notification.show(data.data.message, { type: 'error' });
35+
errorNotification = OC.Notification.show(data.data.message, { type: 'error' });
3036
}
3137

3238
if (_.isUndefined(data.data)) {

0 commit comments

Comments
 (0)