Skip to content

Commit

Permalink
Fix git commit check all
Browse files Browse the repository at this point in the history
Resolves: #487
  • Loading branch information
ggodlewski committed Aug 18, 2024
1 parent 0edde7d commit d07d6a7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions apps/ui/src/components/GitCommit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export default {
this.checked[change.path] = true;
}
}
this.isSomethingChecked = Object.keys(this.checked).length > 0;
},
toggle(path) {
if (this.checked[path]) {
Expand All @@ -330,17 +331,6 @@ export default {
}
this.isSomethingChecked = Object.keys(this.checked).length > 0;
},
toggleCheckAll() {
if (this.isCheckedAll) {
this.checked = {};
this.isSomethingChecked = false;
} else {
for (const item of this.gitChanges) {
this.checked[item.path] = true;
}
this.isSomethingChecked = true;
}
},
async generateCommitMsg() {
if (Object.keys(this.checked).length > 1) {
this.commitMsg = '';
Expand Down

0 comments on commit d07d6a7

Please sign in to comment.