mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
31 lines
755 B
Vue
31 lines
755 B
Vue
<template>
|
|
<span>
|
|
<div class="push-connection-lost primary-color" v-if="!rootStore.pushConnectionActive">
|
|
<n8n-tooltip placement="bottom-end" >
|
|
<template #current>
|
|
<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 { useRootStore } from "@/stores/n8nRootStore";
|
|
import { mapStores } from "pinia";
|
|
import Vue from "vue";
|
|
|
|
export default Vue.extend({
|
|
name: "PushConnectionTracker",
|
|
computed: {
|
|
...mapStores(
|
|
useRootStore,
|
|
),
|
|
},
|
|
});
|
|
</script>
|