diff options
| author | dave <starpumadev@gmail.com> | 2019-04-04 12:47:25 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-05-15 12:04:24 -0400 |
| commit | 1aa0e8d7e026267aa2af82fbd18cf7521ad842e9 (patch) | |
| tree | 7a14a24540d3b561b2c166196aa2bac08772afe2 /src/components/status/status.js | |
| parent | b491e6acbe677d7fa72e370a1cb75c64921e8d56 (diff) | |
#468 - pin/unpin status
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index c01cfe79..c52e026a 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -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 |
