-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix showing of all apps are up-to-date in apps management #32114
Conversation
/compile amend / |
/backport to stable24 |
5d5818f
to
b897db3
Compare
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if it is expected that the updateall button shows up if only one update is available...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update all should show only if theres at least 2 apps, otherwise "all" doesnt make too much sense i would say
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also good point... I guess @jancborchardt and @nimishavijay should probably decide then :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @nimishavijay :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both could work... I like the idea of showing the message on top so that an admin can just click the same button everytime to update, but as Greta said "Update all" doesn't with if there is only one update.
What do you think about showing a message "1 app has an update available. [Update button]" if there is only 1 update available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! at least the description is already implemented like this:
{{ n('settings', '%n app has an update available', '%n apps have an update available', counter) }} |
What could the update button in the case of only one update state?
{{ t('settings', 'Update all') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implemented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What could the update button in the case of only one update state?
@szaimen not sure if you already did that, but if it’s only 1 app, the button can simply be labeled "Update". :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, already implemented like this :)
b897db3
to
2a5e455
Compare
}, | ||
showUpdateAll() { | ||
return this.hasPendingUpdate && ['installed', 'updates'].includes(this.category) | ||
return this.hasPendingUpdate && this.useListView |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the best fix because we now handle this in one method:
server/apps/settings/src/components/AppList.vue
Lines 192 to 194 in 2a5e455
useListView() { | |
return (this.category === 'installed' || this.category === 'enabled' || this.category === 'disabled' || this.category === 'updates' || this.category === 'featured') | |
}, |
/compile amend / |
@GretaD does this look good to you now? :) |
Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2a5e455
to
34004a3
Compare
The backport to stable24 failed. Please do this backport manually. |
/backport to stable24 |
The backport to stable24 failed. Please do this backport manually. |
Fix #31915
Signed-off-by: szaimen szaimen@e.mail.de
For my own testing