Add bookmarks

Co-authored-by: jared <jaredrmain@gmail.com>
This commit is contained in:
Eugenij 2020-07-03 19:45:49 +00:00 committed by Shpuld Shpludson
parent 7bd89b579f
commit de291e2e33
20 changed files with 213 additions and 24 deletions

View file

@ -34,6 +34,16 @@ const ExtraButtons = {
navigator.clipboard.writeText(this.statusLink)
.then(() => this.$emit('onSuccess'))
.catch(err => this.$emit('onError', err.error.error))
},
bookmarkStatus () {
this.$store.dispatch('bookmark', { id: this.status.id })
.then(() => this.$emit('onSuccess'))
.catch(err => this.$emit('onError', err.error.error))
},
unbookmarkStatus () {
this.$store.dispatch('unbookmark', { id: this.status.id })
.then(() => this.$emit('onSuccess'))
.catch(err => this.$emit('onError', err.error.error))
}
},
computed: {