mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(editor): Move editor-ui and design-system to frontend dir (no-changelog) (#13564)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
import { usePushConnectionStore } from '@/stores/pushConnection.store';
|
||||
import { useI18n } from '@/composables/useI18n';
|
||||
import { computed } from 'vue';
|
||||
|
||||
const pushConnectionStore = usePushConnectionStore();
|
||||
const i18n = useI18n();
|
||||
|
||||
const showConnectionLostError = computed(() => {
|
||||
// Only show the connection lost error if the connection has been requested
|
||||
// and the connection is not currently connected. This is to prevent the
|
||||
// connection error from being shown e.g. when user navigates directly to
|
||||
// the workflow executions list, which doesn't open the connection.
|
||||
return pushConnectionStore.isConnectionRequested && !pushConnectionStore.isConnected;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span>
|
||||
<div v-if="showConnectionLostError" class="push-connection-lost primary-color">
|
||||
<n8n-tooltip placement="bottom-end">
|
||||
<template #content>
|
||||
<div v-n8n-html="i18n.baseText('pushConnectionTracker.cannotConnectToServer')"></div>
|
||||
</template>
|
||||
<span>
|
||||
<font-awesome-icon icon="exclamation-triangle" />
|
||||
{{ i18n.baseText('pushConnectionTracker.connectionLost') }}
|
||||
</span>
|
||||
</n8n-tooltip>
|
||||
</div>
|
||||
<slot v-else />
|
||||
</span>
|
||||
</template>
|
||||
Reference in New Issue
Block a user