This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
wlxsp
/
test1
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Adds hasChanges
main
Eric Amodio
3 years ago
parent
77802dc965
commit
393155a020
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
)
;
Write
Preview
Loading…
Cancel
Save