diff options
| author | taehoon <th.dev91@gmail.com> | 2019-06-27 08:19:35 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-07 22:49:18 -0400 |
| commit | 0131effb013025edae843ed7c92ef8fdf43a3623 (patch) | |
| tree | 9d6aa70693530cdd0276082b911e40d21a5b77fc /src | |
| parent | ab4d7d9616319778b7ed5d79ca1f389c9e439113 (diff) | |
add comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 284c657c..7911d40d 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -421,11 +421,13 @@ const Status = { } }, '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) { this.$store.dispatch('fetchRepeats', this.status.id) } }, '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) { this.$store.dispatch('fetchFavs', this.status.id) } |
