fix(editor): Prevent saving already saved workflows (#9670)
This commit is contained in:
committed by
GitHub
parent
99b54bb029
commit
b652405a06
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user