diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-06-30 15:15:27 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-06-30 15:15:27 +0300 |
| commit | ee1364a16770792e2a1040a0ea0b8f1693b5da52 (patch) | |
| tree | 88a015ef24d8f04b8750f92471c11799b92ce4f0 /src/components/status_popover | |
| parent | 6529f9fa34c5e4e4786f76f63068d70c771d868e (diff) | |
add no-statusId support for status popover
Diffstat (limited to 'src/components/status_popover')
| -rw-r--r-- | src/components/status_popover/status_popover.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/status_popover/status_popover.js b/src/components/status_popover/status_popover.js index 159132a9..51e7680c 100644 --- a/src/components/status_popover/status_popover.js +++ b/src/components/status_popover/status_popover.js @@ -22,6 +22,10 @@ const StatusPopover = { methods: { enter () { if (!this.status) { + if (!this.statusId) { + this.error = true + return + } this.$store.dispatch('fetchStatus', this.statusId) .then(data => (this.error = false)) .catch(e => (this.error = true)) |
