Skip to content

Commit

Permalink
fix: disable "Update All" button when an invalid repo is detected (#1500
Browse files Browse the repository at this point in the history
)

Signed-off-by: Mathis Mensing <[email protected]>
  • Loading branch information
matmen authored Oct 10, 2024
1 parent 845d044 commit a2cc361
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/settings/VersionSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
small
color="primary"
class="mr-2"
:disabled="!hasUpdates || isRefreshing || printerPrinting"
:disabled="!hasUpdates || hasInvalidComponent || isRefreshing || printerPrinting"
@click="handleUpdateComponent('all')"
>
<v-icon left>
Expand Down Expand Up @@ -207,6 +207,10 @@ export default class VersionSettings extends Mixins(StateMixin) {
return d
}
get hasInvalidComponent () {
return !!this.components.find((c: UpdatePackage) => 'is_valid' in c && !c.is_valid)
}
get enableNotifications () {
return this.$store.state.config.uiSettings.general.enableVersionNotifications
}
Expand Down

0 comments on commit a2cc361

Please sign in to comment.