Improve detection of installations errors
This commit is contained in:
parent
bbeb657c03
commit
24d471af29
|
@ -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');
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue