fix showing of all apps are up-to-date in apps management

Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
szaimen 2022-04-26 10:27:06 +02:00 committed by nextcloud-command
parent ff64a731b0
commit 2c938d9de8
5 changed files with 9 additions and 9 deletions

View file

@ -30,7 +30,7 @@
id="app-list-update-all"
type="primary"
@click="updateAll">
{{ t('settings', 'Update all') }}
{{ n('settings', 'Update', 'Update all', counter) }}
</Button>
</div>
@ -125,10 +125,10 @@ export default {
return this.$store.getters.loading('list')
},
hasPendingUpdate() {
return this.apps.filter(app => app.update).length > 1
return this.apps.filter(app => app.update).length > 0
},
showUpdateAll() {
return this.hasPendingUpdate && ['installed', 'updates'].includes(this.category)
return this.hasPendingUpdate && this.useListView
},
apps() {
const apps = this.$store.getters.getAllApps

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long