diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-08-01 11:46:57 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-08-01 11:46:57 +0000 |
| commit | 8e7f3ea074d16a6c89fa7366a1f64302724f661f (patch) | |
| tree | 40e151399cfb1d9a3afd8576e05173a33a90b03f /src/components/status/status.js | |
| parent | d0a09480b396e05d58957d193490e14a4ed12ccf (diff) | |
| parent | bd5d5c9df7e39efa7ecbb1bbfbd036906d1e9535 (diff) | |
Merge branch 'eslint-update' into 'develop'
update ESLint
See merge request pleroma/pleroma-fe!1576
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 053c9441..384063a7 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -361,6 +361,7 @@ const Status = { return uniqBy(combinedUsers, 'id') }, tags () { + // eslint-disable-next-line no-prototype-builtins return this.status.tags.filter(tagObj => tagObj.hasOwnProperty('name')).map(tagObj => tagObj.name).join(' ') }, hidePostStats () { @@ -448,7 +449,7 @@ const Status = { scrollIfHighlighted (highlightId) { const id = highlightId if (this.status.id === id) { - let rect = this.$el.getBoundingClientRect() + const rect = this.$el.getBoundingClientRect() if (rect.top < 100) { // Post is above screen, match its top to screen top window.scrollBy(0, rect.top - 100) @@ -463,7 +464,7 @@ const Status = { } }, watch: { - 'highlight': function (id) { + highlight: function (id) { this.scrollIfHighlighted(id) }, 'status.repeat_num': function (num) { @@ -478,7 +479,7 @@ const Status = { this.$store.dispatch('fetchFavs', this.status.id) } }, - 'isSuspendable': function (val) { + isSuspendable: function (val) { this.suspendable = val } } |
