diff --git a/settings/js/apps.js b/settings/js/apps.js index b6f6363a99..a99df65e3c 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)); + } } }); } diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 489062d519..ef89a5393c 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -97,6 +97,10 @@ script(
t("Show description …"));?>
+ + {{#if missingMinOwnCloudVersion}}

t('This app has no minimum ownCloud version assigned. This will be an error in ownCloud 11 and later.')); ?>