summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-10-02 14:12:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-05 22:07:24 +0200
commit264d123396725288b4d2b1ef766dded03096fb0c (patch)
tree8df58ee89c98e2b48ee5e864afeae77c8853a19d
parent69d68fbe8e2f9771a9542d11bdaf10b129a04fcf (diff)
downloadnextcloud-server-264d123396725288b4d2b1ef766dded03096fb0c.tar.gz
nextcloud-server-264d123396725288b4d2b1ef766dded03096fb0c.zip
Use OC.Dialogs for modal reload message
-rw-r--r--settings/js/apps.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 2a6876c53df..325653ccbdc 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -246,7 +246,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
appItem.addClass('appwarning');
} else {
if (result.data.update_required) {
- OC.Notification.show(t('settings', 'The app needs to be updated, please reload the page'));
+ OC.Settings.Apps.showReloadMessage();
setTimeout(function() {
location.reload();
@@ -398,6 +398,20 @@ OC.Settings.Apps = OC.Settings.Apps || {
.text('');
},
+ showReloadMessage: function(appId) {
+ OC.dialogs.info(
+ t(
+ 'settings',
+ 'The app needs to be updated. This page will be reloaded in 5 seconds.'
+ ),
+ t('settings','App update'),
+ function (result) {
+ window.location.reload();
+ },
+ true
+ );
+ },
+
filter: function(query) {
query = query.toLowerCase();
$('#apps-list').find('.section').addClass('hidden');