Skip to content
Snippets Groups Projects
Commit 387a77e7 authored by Lukas Reschke's avatar Lukas Reschke Committed by GitHub
Browse files

Merge pull request #3590 from individual-it/correct_text_when_disabling_app

show correct text when disabling App
parents 8bfa50bd b138d4fd
No related branches found
No related tags found
No related merge requests found
......@@ -292,8 +292,8 @@ OC.Settings.Apps = OC.Settings.Apps || {
OC.Settings.Apps.hideErrorMessage(appId);
groups = groups || [];
var appItem = $('div#app-'+appId+'');
element.val(t('settings','Enabling app …'));
if(active && !groups.length) {
element.val(t('settings','Disabling app …'));
$.post(OC.filePath('settings','ajax','disableapp.php'),{appid:appId},function(result) {
if(!result || result.status !== 'success') {
if (result.data && result.data.message) {
......@@ -320,6 +320,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
} else {
// TODO: display message to admin to not refresh the page!
// TODO: lock UI to prevent further operations
element.val(t('settings','Enabling app …'));
$.post(OC.filePath('settings','ajax','enableapp.php'),{appid: appId, groups: groups},function(result) {
if(!result || result.status !== 'success') {
if (result.data && result.data.message) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment