From 0131effb013025edae843ed7c92ef8fdf43a3623 Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 27 Jun 2019 08:19:35 -0400 Subject: [PATCH] add comments --- src/components/status/status.js | 2 ++ 1 file changed, 2 insertions(+) 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) }