diff options
Diffstat (limited to 'apps/settings/src/components/AppList.vue')
-rw-r--r-- | apps/settings/src/components/AppList.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/settings/src/components/AppList.vue b/apps/settings/src/components/AppList.vue index cfc778fe409..2016ad1e89a 100644 --- a/apps/settings/src/components/AppList.vue +++ b/apps/settings/src/components/AppList.vue @@ -17,6 +17,7 @@ <NcButton v-if="showUpdateAll" id="app-list-update-all" type="primary" + :disabled="!canUpdateAny" @click="updateAll"> {{ n('settings', 'Update', 'Update all', counter) }} </NcButton> @@ -194,6 +195,9 @@ export default { showUpdateAll() { return this.hasPendingUpdate && this.useListView }, + canUpdateAny() { + return this.apps.filter(app => app.update && app.canUpdate).length > 0 + }, apps() { // Exclude ExApps from the list if AppAPI is disabled const exApps = this.$store.getters.isAppApiEnabled ? this.appApiStore.getAllApps : [] @@ -324,7 +328,7 @@ export default { updateAll() { const limit = pLimit(1) this.apps - .filter(app => app.update) + .filter(app => app.update && app.canUpdate) .map((app) => limit(() => { this.update(app.id) })) |