feat(editor): Workflow history [WIP]- Improve switching between workflow history and editor (no-changelog) (#7353)

This commit is contained in:
Csaba Tuncsik
2023-10-05 15:49:59 +02:00
committed by GitHub
parent 1a661e6d00
commit cd12a5990a
7 changed files with 48 additions and 71 deletions

View File

@@ -106,7 +106,13 @@
:to="workflowHistoryRoute"
:class="$style.workflowHistoryButton"
>
<n8n-icon icon="history" size="medium" />
<n8n-icon-button
:disabled="isWorkflowHistoryButtonDisabled"
type="tertiary"
icon="history"
size="medium"
text
/>
</router-link>
<div :class="$style.workflowMenuContainer">
<input
@@ -355,6 +361,9 @@ export default defineComponent({
},
};
},
isWorkflowHistoryButtonDisabled(): boolean {
return this.workflowsStore.isNewWorkflow;
},
},
methods: {
async onSaveButtonClick() {
@@ -714,5 +723,11 @@ $--header-spacing: 20px;
.workflowHistoryButton {
margin-left: var(--spacing-l);
color: var(--color-text-dark);
:disabled {
background: transparent;
border: none;
opacity: 0.5;
}
}
</style>