diff options
Diffstat (limited to 'apps/settings/js/usersettings.js')
-rw-r--r-- | apps/settings/js/usersettings.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings/js/usersettings.js b/apps/settings/js/usersettings.js index fcfe556b1d9..a02aae6fb6a 100644 --- a/apps/settings/js/usersettings.js +++ b/apps/settings/js/usersettings.js @@ -24,6 +24,11 @@ if (_.isUndefined(data)) { return null; } + + if (data.status && data.status === 'error') { + OC.Notification.show(data.data.message, { type: 'error' }); + } + if (_.isUndefined(data.data)) { return null; } @@ -47,4 +52,4 @@ OC.Settings = OC.Settings || {}; OC.Settings.UserSettings = UserSettings; -})();
\ No newline at end of file +})(); |