add comments
This commit is contained in:
parent
ab4d7d9616
commit
0131effb01
1 changed files with 2 additions and 0 deletions
|
@ -421,11 +421,13 @@ const Status = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'status.repeat_num': function (num) {
|
'status.repeat_num': function (num) {
|
||||||
|
// refetch repeats when repeat_num is changed in any way
|
||||||
if (this.isFocused && this.statusFromGlobalRepository.rebloggedBy && this.statusFromGlobalRepository.rebloggedBy.length !== num) {
|
if (this.isFocused && this.statusFromGlobalRepository.rebloggedBy && this.statusFromGlobalRepository.rebloggedBy.length !== num) {
|
||||||
this.$store.dispatch('fetchRepeats', this.status.id)
|
this.$store.dispatch('fetchRepeats', this.status.id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'status.fave_num': function (num) {
|
'status.fave_num': function (num) {
|
||||||
|
// refetch favs when fave_num is changed in any way
|
||||||
if (this.isFocused && this.statusFromGlobalRepository.favoritedBy && this.statusFromGlobalRepository.favoritedBy.length !== num) {
|
if (this.isFocused && this.statusFromGlobalRepository.favoritedBy && this.statusFromGlobalRepository.favoritedBy.length !== num) {
|
||||||
this.$store.dispatch('fetchFavs', this.status.id)
|
this.$store.dispatch('fetchFavs', this.status.id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue