Improve Flows drawer editing experience (#13934)

This commit is contained in:
Azri Kahar
2022-06-16 21:25:56 +08:00
committed by GitHub
parent 0f438ef3d0
commit c82cc47d36

View File

@@ -94,17 +94,18 @@
<template #actions>
<v-button
v-if="currentTab[0] === 'flow_setup'"
v-tooltip.bottom="t('next')"
v-tooltip.bottom="isNew ? t('next') : t('save')"
:disabled="!values.name || values.name.length === 0"
:loading="saving"
icon
rounded
@click="currentTab = ['trigger_setup']"
@click="isNew ? (currentTab = ['trigger_setup']) : save()"
>
<v-icon name="arrow_forward" />
<v-icon :name="isNew ? 'arrow_forward' : 'check'" />
</v-button>
<v-button
v-if="currentTab[0] === 'trigger_setup'"
v-tooltip.bottom="t('finish_setup')"
v-tooltip.bottom="isNew ? t('finish_setup') : t('save')"
:disabled="!values.trigger"
:loading="saving"
icon