diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-03-04 15:42:37 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-03-04 15:42:37 +0000 |
| commit | 83d8343777050f6ee5fad09832b3878885eda4dd (patch) | |
| tree | a19ad2a67136fc21d7794848e811f092eb0e0706 /src/components/status_popover/status_popover.js | |
| parent | 1b9805b550444403792db2304b5a6d5681e8f30d (diff) | |
| parent | 147364b80cae7a0fac1ccf00b5669a20de1b7e67 (diff) | |
Merge branch 'develop' into 'master'
Update master with 2.0.0
See merge request pleroma/pleroma-fe!1080
Diffstat (limited to 'src/components/status_popover/status_popover.js')
| -rw-r--r-- | src/components/status_popover/status_popover.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/status_popover/status_popover.js b/src/components/status_popover/status_popover.js index cb55f67e..159132a9 100644 --- a/src/components/status_popover/status_popover.js +++ b/src/components/status_popover/status_popover.js @@ -5,6 +5,11 @@ const StatusPopover = { props: [ 'statusId' ], + data () { + return { + error: false + } + }, computed: { status () { return find(this.$store.state.statuses.allStatuses, { id: this.statusId }) @@ -18,6 +23,8 @@ const StatusPopover = { enter () { if (!this.status) { this.$store.dispatch('fetchStatus', this.statusId) + .then(data => (this.error = false)) + .catch(e => (this.error = true)) } } } |
