summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-10-02 12:15:07 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-05 22:07:24 +0200
commit69d68fbe8e2f9771a9542d11bdaf10b129a04fcf (patch)
tree880c2ac26f16eeb95320351977177ecd81a1a912 /settings/js
parent0577eed14e5c4be25afd541c71c2b75b4ad5f9c7 (diff)
downloadnextcloud-server-69d68fbe8e2f9771a9542d11bdaf10b129a04fcf.tar.gz
nextcloud-server-69d68fbe8e2f9771a9542d11bdaf10b129a04fcf.zip
Reload the page when an app needs an update after being enabled
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index f775ecad620..2a6876c53df 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -245,6 +245,14 @@ OC.Settings.Apps = OC.Settings.Apps || {
element.val(t('settings','Enable'));
appItem.addClass('appwarning');
} else {
+ if (result.data.update_required) {
+ OC.Notification.show(t('settings', 'The app needs to be updated, please reload the page'));
+
+ setTimeout(function() {
+ location.reload();
+ }, 5000);
+ }
+
OC.Settings.Apps.rebuildNavigation();
appItem.data('active',true);
element.data('active',true);