summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-16 12:59:24 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-18 09:55:11 +0100
commit87746e4ae8eb952d0c533d4e223fd2c9eb2a35a0 (patch)
treea881c48fb45519766e0a981b5422aca17d51d2fd /settings/js
parent4422f9c9ef755ef44385a2ed9e0c42f7d1c459d5 (diff)
downloadnextcloud-server-87746e4ae8eb952d0c533d4e223fd2c9eb2a35a0.tar.gz
nextcloud-server-87746e4ae8eb952d0c533d4e223fd2c9eb2a35a0.zip
Make app updates better visible
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index b6f6363a992..a99df65e3c1 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -124,6 +124,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
$('.app-level .experimental').tipsy({fallback: t('settings', 'This app is not checked for security issues and is new or known to be unstable. Install at your own risk.')});
},
complete: function() {
+ var availableUpdates = 0;
$('#apps-list').removeClass('icon-loading');
$.ajax(OC.generateUrl('settings/apps/list?category={categoryId}&includeUpdateInfo=1', {
categoryId: categoryId
@@ -135,8 +136,14 @@ OC.Settings.Apps = OC.Settings.Apps || {
var $update = $('#app-' + app.id + ' .update');
$update.removeClass('hidden');
$update.val(t('settings', 'Update to %s').replace(/%s/g, app.update));
+ availableUpdates++;
+ OC.Settings.Apps.State.apps[app.id].update = true;
}
- })
+ });
+
+ if (availableUpdates > 0) {
+ OC.Notification.show(n('settings', 'You have %n app update pending', 'You have %n app updates pending', availableUpdates));
+ }
}
});
}