refactor(editor): Delete unused code (no-changelog) (#9866)
This commit is contained in:
committed by
GitHub
parent
405e8746c9
commit
803895360c
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { onBeforeMount, onBeforeUnmount, onMounted, ref } from 'vue';
|
||||
import { onBeforeMount, onBeforeUnmount, onMounted } from 'vue';
|
||||
import GlobalExecutionsList from '@/components/executions/global/GlobalExecutionsList.vue';
|
||||
import { setPageTitle } from '@/utils/htmlUtils';
|
||||
import { useI18n } from '@/composables/useI18n';
|
||||
@@ -19,8 +19,6 @@ const executionsStore = useExecutionsStore();
|
||||
|
||||
const toast = useToast();
|
||||
|
||||
const animationsEnabled = ref(false);
|
||||
|
||||
const { executionsCount, executionsCountEstimated, filters, allExecutions } =
|
||||
storeToRefs(executionsStore);
|
||||
|
||||
|
||||
@@ -105,7 +105,6 @@ const {
|
||||
addConnections,
|
||||
editableWorkflow,
|
||||
editableWorkflowObject,
|
||||
triggerNodes,
|
||||
} = useCanvasOperations({ router, lastClickPosition });
|
||||
|
||||
const isLoading = ref(true);
|
||||
@@ -128,15 +127,6 @@ const isReadOnlyEnvironment = computed(() => {
|
||||
return sourceControlStore.preferences.branchReadOnly;
|
||||
});
|
||||
|
||||
const isCanvasAddButtonVisible = computed(() => {
|
||||
return (
|
||||
triggerNodes.value.length > 0 &&
|
||||
!isLoading.value &&
|
||||
!isDemoRoute.value &&
|
||||
!isReadOnlyEnvironment.value
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
* Initialization
|
||||
*/
|
||||
|
||||
@@ -3,13 +3,11 @@ import { merge } from 'lodash-es';
|
||||
import { EnterpriseEditionFeature, STORES } from '@/constants';
|
||||
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
|
||||
import SettingsExternalSecrets from '@/views/SettingsExternalSecrets.vue';
|
||||
import { useExternalSecretsStore } from '@/stores/externalSecrets.ee.store';
|
||||
import { createComponentRenderer } from '@/__tests__/render';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { setupServer } from '@/__tests__/server';
|
||||
|
||||
let pinia: ReturnType<typeof createTestingPinia>;
|
||||
let externalSecretsStore: ReturnType<typeof useExternalSecretsStore>;
|
||||
let settingsStore: ReturnType<typeof useSettingsStore>;
|
||||
let server: ReturnType<typeof setupServer>;
|
||||
|
||||
@@ -28,7 +26,6 @@ describe('SettingsExternalSecrets', () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
externalSecretsStore = useExternalSecretsStore(pinia);
|
||||
settingsStore = useSettingsStore();
|
||||
|
||||
await settingsStore.getSettings();
|
||||
|
||||
Reference in New Issue
Block a user