summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2013-03-23 12:19:43 +0100
committerBrice Maron <brice@bmaron.net>2013-03-23 13:47:42 +0100
commit24d471af294938a6f89af74710ecb8d6bd1e33b5 (patch)
tree51b9b437e8515e11e7eeded86418d74fb8f820e4 /settings
parentbbeb657c03f5e036aaa31c4c843bdf3865974dfa (diff)
downloadnextcloud-server-24d471af294938a6f89af74710ecb8d6bd1e33b5.tar.gz
nextcloud-server-24d471af294938a6f89af74710ecb8d6bd1e33b5.zip
Improve detection of installations errors
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 43013a9e1ec..dd20bc0a9c5 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -75,7 +75,13 @@ OC.Settings.Apps = OC.Settings.Apps || {
element.data('active',true);
element.val(t('settings','Disable'));
}
- },'json');
+ },'json')
+ .fail(function() {
+ OC.dialogs.alert('Error while enabling app','Error');
+ element.data('active',false);
+ OC.Settings.Apps.removeNavigation(appid);
+ element.val(t('settings','Enable'));
+ });
$('#leftcontent li[data-id="'+appid+'"]').addClass('active');
}
},