diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-05-08 10:46:00 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-05-08 10:46:00 +0300 |
| commit | ddc3b86d24249021cc1634dbdfb476684265f293 (patch) | |
| tree | 2ccdaa44fa17aee1b4251d783cecff53ff7581c2 /src/components/extra_buttons/extra_buttons.js | |
| parent | 41fc26869f4ce9e93da94f1e441c69e2e37b0124 (diff) | |
fix popover not closing on pressing the buttons
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.js')
| -rw-r--r-- | src/components/extra_buttons/extra_buttons.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js index e1bf7e20..e4b19d01 100644 --- a/src/components/extra_buttons/extra_buttons.js +++ b/src/components/extra_buttons/extra_buttons.js @@ -3,11 +3,6 @@ import Popover from '../popover/popover.vue' const ExtraButtons = { props: [ 'status' ], components: { Popover }, - data: function () { - return { - statusLink: `${this.$store.state.instance.server}${this.$router.resolve({ name: 'conversation', params: { id: this.status.id } }).href}` - } - }, methods: { deleteStatus () { const confirmed = window.confirm(this.$t('status.delete_confirm')) @@ -56,6 +51,9 @@ const ExtraButtons = { }, canMute () { return !!this.currentUser + }, + statusLink () { + return `${this.$store.state.instance.server}${this.$router.resolve({ name: 'conversation', params: { id: this.status.id } }).href}` } } } |
