Merge pull request #26370 from nextcloud/bugfix/noid/kill-notifications-when-retesting

Remove notifications when retesting profile field input
This commit is contained in:
Joas Schilling 2021-03-30 11:25:27 +02:00 committed by GitHub
commit 76b4976f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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)) {