fix(ui): enable Publish only when the draft has changes
This commit is contained in:
1 parent
bde67cc438
commit
dd155d1dc7
1 file changed
+1
-1
@@ -407,7 +407,7 @@ function syncScroll(event: Event): void {
|
||||
<DropdownMenuItem v-if="view === 'canvas' || view === 'yaml'" variant="destructive" @select="confirmDelete = true"><Trash2 />Delete workflow</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
<Button v-if="view === 'canvas' || view === 'yaml'" type="submit" size="sm" :disabled="state.saving || !parsed.ok || !dirty || archieWorking">
|
||||
<Button v-if="view === 'canvas' || view === 'yaml'" type="submit" size="sm" :disabled="state.saving || !parsed.ok || !changes.length || archieWorking">
|
||||
<Spinner v-if="state.saving" data-icon="inline-start" />Publish</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user