"use strict" import Communication from './../Communication.js' export default { name: 'connection-overlay', template: `
`, emits: { reconnect: null, }, props: { connectionState: Number, }, computed: { lostConnection () { return this.connectionState === Communication.CONN_STATE_DISCONNECTED }, connecting () { return this.connectionState === Communication.CONN_STATE_CONNECTING }, show () { return this.lostConnection || this.connecting }, } }