diff --git a/packages/editor-ui/src/Interface.ts b/packages/editor-ui/src/Interface.ts index 0a7fed175e..ca734f6ef6 100644 --- a/packages/editor-ui/src/Interface.ts +++ b/packages/editor-ui/src/Interface.ts @@ -1022,6 +1022,10 @@ export interface IModalState { httpNodeParameters?: string; } +export interface NestedRecord { + [key: string]: T | NestedRecord; +} + export type IRunDataDisplayMode = 'table' | 'json' | 'binary'; export type nodePanelType = 'input' | 'output'; @@ -1095,6 +1099,7 @@ export interface UIState { currentView: string; mainPanelPosition: number; fakeDoorFeatures: IFakeDoor[]; + dynamicTranslations: NestedRecord; draggable: { isDragging: boolean; type: string; diff --git a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue index 9b6078b553..099eabed5f 100644 --- a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue +++ b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue @@ -75,6 +75,25 @@ > {{ $locale.baseText('workflowDetails.share') }} + { + return this.uiStore.dynamicTranslations; + }, isWorkflowActive(): boolean { return this.workflowsStore.isWorkflowActive; }, @@ -548,4 +570,8 @@ $--header-spacing: 20px; .deleteItem { color: var(--color-danger); } + +.disabledShareButton { + cursor: not-allowed; +} diff --git a/packages/editor-ui/src/components/WorkflowShareModal.ee.vue b/packages/editor-ui/src/components/WorkflowShareModal.ee.vue index 05219fafb1..51eb6a4a5c 100644 --- a/packages/editor-ui/src/components/WorkflowShareModal.ee.vue +++ b/packages/editor-ui/src/components/WorkflowShareModal.ee.vue @@ -1,7 +1,7 @@