diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-07-16 20:49:49 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-07-16 20:49:49 +0000 |
| commit | cc2e35f4999a16a6647887f1c4f09e2b19a54b3e (patch) | |
| tree | dc4d3e5aa3de812ce546e3a206a1f97fa4dc7f24 /src/components/extra_buttons/extra_buttons.js | |
| parent | f734a721165537b587495498c3e7c3d80eb179e7 (diff) | |
| parent | 051b3b5141b7da8fd5c73af20848d6546ff43248 (diff) | |
Merge branch '609' into 'develop'
Fix popper issues using another popper library
Closes #612 and #609
See merge request pleroma/pleroma-fe!881
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.js')
| -rw-r--r-- | src/components/extra_buttons/extra_buttons.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js index 528da301..2ec72729 100644 --- a/src/components/extra_buttons/extra_buttons.js +++ b/src/components/extra_buttons/extra_buttons.js @@ -1,45 +1,21 @@ -import Popper from 'vue-popperjs/src/component/popper.js.vue' - const ExtraButtons = { props: [ 'status' ], - components: { - Popper - }, - data () { - return { - showDropDown: false, - showPopper: true - } - }, methods: { deleteStatus () { - this.refreshPopper() const confirmed = window.confirm(this.$t('status.delete_confirm')) if (confirmed) { this.$store.dispatch('deleteStatus', { id: this.status.id }) } }, - toggleMenu () { - this.showDropDown = !this.showDropDown - }, pinStatus () { - this.refreshPopper() this.$store.dispatch('pinStatus', this.status.id) .then(() => this.$emit('onSuccess')) .catch(err => this.$emit('onError', err.error.error)) }, unpinStatus () { - this.refreshPopper() this.$store.dispatch('unpinStatus', this.status.id) .then(() => this.$emit('onSuccess')) .catch(err => this.$emit('onError', err.error.error)) - }, - refreshPopper () { - this.showPopper = false - this.showDropDown = false - setTimeout(() => { - this.showPopper = true - }) } }, computed: { |
