summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-27 14:47:59 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-27 14:47:59 +0200
commit3e00554d35be995f52fba4ab49fc6ef1b01fc37b (patch)
treece7942f14193e9f6c85401cbdfd4045e2fa9a07c /apps/updatenotification/js
parent6f955defe46b498f014d4e0f105d26324bb7ecd6 (diff)
downloadnextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.tar.gz
nextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.zip
Respect updater kill switch and fall back to download button
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/js')
-rw-r--r--apps/updatenotification/js/admin.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/updatenotification/js/admin.js b/apps/updatenotification/js/admin.js
index 3ca45a191d4..91d9f80b605 100644
--- a/apps/updatenotification/js/admin.js
+++ b/apps/updatenotification/js/admin.js
@@ -35,6 +35,11 @@ $(document).ready(function(){
body.removeAttr('id');
body.attr('id', 'body-settings');
}
+ },
+ error: function(){
+ OC.Notification.showTemporary(t('updatenotification', 'Could not start updater, please try the manual update'));
+ $('#oca_updatenotification_button').addClass('hidden');
+ $('#oca_updatenotification_section .button').removeClass('hidden');
}
});
});