Browse Source

Remove notifications when retesting

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v22.0.0beta1
Joas Schilling 3 years ago
parent
commit
ebc3b1f802
No account linked to committer's email address
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      apps/settings/js/usersettings.js

+ 7
- 1
apps/settings/js/usersettings.js 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)) {

Loading…
Cancel
Save