diff options
author | Artur Neumann <info@individual-it.net> | 2017-02-23 11:47:38 +0545 |
---|---|---|
committer | Artur Neumann <info@individual-it.net> | 2017-02-23 11:47:38 +0545 |
commit | b138d4fdee3afa8d2b0962698e80d96cb1a02b9e (patch) | |
tree | 48a732f1a71a7be9e244f1420e4deb2b9c35b1d0 /settings | |
parent | d0c6179ec18d1e2c3ce86bdf03f36aaa1501c6e7 (diff) | |
download | nextcloud-server-b138d4fdee3afa8d2b0962698e80d96cb1a02b9e.tar.gz nextcloud-server-b138d4fdee3afa8d2b0962698e80d96cb1a02b9e.zip |
show correct text when disabling App
during the process of disabling an App the button would show "Enabling
app …"
This is corrected by this patch
Signed-off-by: Artur Neumann <info@individual-it.net>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 1538e71a491..b73b4a35b3f 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -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) { |