Skip to content

Commit

Permalink
fix(updateManager): fix also button color
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Jul 2, 2024
1 parent 6ec2b68 commit 5d753dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/panels/Machine/UpdatePanel/Entry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,8 @@ export default class UpdatePanelEntry extends Mixins(BaseMixin) {
get btnColor() {
if (this.isCorrupt || this.isDetached || this.isDirty || !this.isValid) return 'orange'
if (
this.commitsBehind.length ||
(this.localVersion && this.remoteVersion && semver.gt(this.remoteVersion, this.localVersion))
)
return 'primary'
if (this.type === 'web' && this.webUpdatable) return 'primary'
if (this.type === 'git_repo' && this.commitsBehind.length) return 'primary'
return 'green'
}
Expand Down

0 comments on commit 5d753dc

Please sign in to comment.