feat: Show refresh modal on action cable disconnect (#4010)
This commit is contained in:
parent
ea3e011d3f
commit
80d83b401c
3 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
<script>
|
||||
import globalConfigMixin from 'shared/mixins/globalConfigMixin';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { BUS_EVENTS } from 'shared/constants/busEvents';
|
||||
|
||||
export default {
|
||||
mixins: [globalConfigMixin],
|
||||
|
@ -46,6 +47,9 @@ export default {
|
|||
|
||||
mounted() {
|
||||
window.addEventListener('offline', this.updateOnlineStatus);
|
||||
window.bus.$on(BUS_EVENTS.WEBSOCKET_DISCONNECT, () => {
|
||||
this.updateOnlineStatus({ type: 'offline' });
|
||||
});
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue