#468 - pin/unpin status
This commit is contained in:
parent
b491e6acbe
commit
1aa0e8d7e0
4 changed files with 34 additions and 6 deletions
|
@ -353,6 +353,16 @@ const Status = {
|
|||
this.expandingSubject = true
|
||||
}
|
||||
},
|
||||
pinStatus () {
|
||||
this.$store.state.api.backendInteractor.pinOwnStatus(this.status.id).then((status) => {
|
||||
this.$store.dispatch('updatePinned', status)
|
||||
})
|
||||
},
|
||||
unpinStatus () {
|
||||
this.$store.state.api.backendInteractor.unpinOwnStatus(this.status.id).then((status) => {
|
||||
this.$store.dispatch('updatePinned', status)
|
||||
})
|
||||
},
|
||||
replyEnter (id, event) {
|
||||
this.showPreview = true
|
||||
const targetId = id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue