fix(editor): Prevent keyboard shortcuts to edit workflows in readonly mode (#6613)

This commit is contained in:
Csaba Tuncsik
2023-07-06 16:01:52 +02:00
committed by GitHub
parent 7515f7d52a
commit 7383e7fd48
4 changed files with 41 additions and 38 deletions

View File

@@ -391,7 +391,6 @@ import {
useRootStore,
useWorkflowsEEStore,
useUsersStore,
useSourceControlStore,
} from '@/stores';
import { createEventBus } from 'n8n-design-system';
@@ -469,7 +468,6 @@ export default defineComponent({
useSettingsStore,
useWorkflowsStore,
useWorkflowsEEStore,
useSourceControlStore,
),
workflowName(): string {
return this.workflowsStore.workflowName;
@@ -493,9 +491,6 @@ export default defineComponent({
return this.workflowsEEStore.getWorkflowOwnerName(`${this.workflowId}`, fallback);
},
readOnlyEnv(): boolean {
return this.sourceControlStore.preferences.branchReadOnly;
},
},
async mounted() {
this.executionTimeout = this.rootStore.executionTimeout;