fix(editor): Prevent saving already saved workflows (#9670)

This commit is contained in:
Milorad FIlipović
2024-06-10 16:00:21 +02:00
committed by GitHub
parent 99b54bb029
commit b652405a06
2 changed files with 16 additions and 1 deletions

View File

@@ -1572,8 +1572,9 @@ export default defineComponent({
if (e.key === 's' && ctrlModifier && !readOnly) {
e.stopPropagation();
e.preventDefault();
const workflowIsSaved = !this.uiStore.stateIsDirty;
if (this.isReadOnlyRoute || this.readOnlyEnv) {
if (this.isReadOnlyRoute || this.readOnlyEnv || workflowIsSaved) {
return;
}