mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
30 lines
773 B
Vue
30 lines
773 B
Vue
<template>
|
|
<span>
|
|
<div class="push-connection-lost primary-color" v-if="!rootStore.pushConnectionActive">
|
|
<n8n-tooltip placement="bottom-end">
|
|
<template #content>
|
|
<div v-html="$locale.baseText('pushConnectionTracker.cannotConnectToServer')"></div>
|
|
</template>
|
|
<span>
|
|
<font-awesome-icon icon="exclamation-triangle" />
|
|
{{ $locale.baseText('pushConnectionTracker.connectionLost') }}
|
|
</span>
|
|
</n8n-tooltip>
|
|
</div>
|
|
<slot v-else />
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { mapStores } from 'pinia';
|
|
import { useRootStore } from '@/stores/n8nRoot.store';
|
|
|
|
export default defineComponent({
|
|
name: 'PushConnectionTracker',
|
|
computed: {
|
|
...mapStores(useRootStore),
|
|
},
|
|
});
|
|
</script>
|