Browse Source

Adds hasChanges

main
Eric Amodio 3 years ago
parent
commit
393155a020
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/git/models/status.ts

+ 4
- 0
src/git/models/status.ts View File

@ -45,6 +45,10 @@ export class GitStatus {
return this.files.filter(f => f.conflicted);
}
get hasChanges() {
return this.files.length !== 0;
}
@memoize()
get hasConflicts() {
return this.files.some(f => f.conflicted);

Loading…
Cancel
Save