debian-mirror-gitlab/app/assets/javascripts/ide/components/terminal_sync/terminal_sync_status_safe.vue
2020-06-23 00:09:42 +05:30

22 lines
481 B
Vue

<script>
import { mapState } from 'vuex';
import TerminalSyncStatus from './terminal_sync_status.vue';
/**
* It is possible that the vuex module is not registered.
*
* This component will gracefully handle this so the actual one can simply use `mapState(moduleName, ...)`.
*/
export default {
components: {
TerminalSyncStatus,
},
computed: {
...mapState(['terminalSync']),
},
};
</script>
<template>
<terminal-sync-status v-if="terminalSync" />
</template>