Page MenuHomePhorge

status_popover.js
No OneTemporary

Size
663 B
Referenced Files
None
Subscribers
None

status_popover.js

import { find } from 'lodash'
const StatusPopover = {
name: 'StatusPopover',
props: [
'statusId'
],
data () {
return {
error: false
}
},
computed: {
status () {
return find(this.$store.state.statuses.allStatuses, { id: this.statusId })
}
},
components: {
Status: () => import('../status/status.vue'),
Popover: () => import('../popover/popover.vue')
},
methods: {
enter () {
if (!this.status) {
this.$store.dispatch('fetchStatus', this.statusId)
.then(data => (this.error = false))
.catch(e => (this.error = true))
}
}
}
}
export default StatusPopover

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 7, 9:07 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
700292
Default Alt Text
status_popover.js (663 B)

Event Timeline