Skip to content

Commit

Permalink
fix repository update. close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
iwate committed May 20, 2020
1 parent 2d797ca commit a92d920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Aiplugs.PoshApp/Views/Shared/Repositories/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@
...Vuex.mapState('signalr', ['gitLog', 'gitLogMessage', 'gitStatus']),
updatable() {
return this.gitLog
&& this.gitLog.name == this.$route.params.id
&& this.gitLog.origin != this.gitLog.local
&& this.gitLog.logs.findIndex(item => item.commit == this.origin) < this.gitLog.logs.findIndex(item => item.commit == this.local)
&& this.gitLog.logs.findIndex(item => item.commit == this.gitLog.origin) < this.gitLog.logs.findIndex(item => item.commit == this.gitLog.local)
},
modified() {
return this.gitStatus.length > 0;
Expand Down

0 comments on commit a92d920

Please sign in to comment.