|
|
@ -184,20 +184,20 @@ export default defineComponent({ |
|
|
|
? t('project.workflow.down_line') |
|
|
|
? t('project.workflow.down_line') |
|
|
|
: t('project.workflow.up_line'), |
|
|
|
: t('project.workflow.up_line'), |
|
|
|
trigger: () => ( |
|
|
|
trigger: () => ( |
|
|
|
<NButton |
|
|
|
<NPopconfirm onPositiveClick={this.handleReleaseWorkflow}> |
|
|
|
size='small' |
|
|
|
{{ |
|
|
|
type={releaseState === 'ONLINE' ? 'warning' : 'error'} |
|
|
|
default: () => |
|
|
|
tag='div' |
|
|
|
releaseState === 'ONLINE' |
|
|
|
circle |
|
|
|
? t('project.workflow.confirm_to_offline') |
|
|
|
class='btn-publish' |
|
|
|
: t('project.workflow.confirm_to_online'), |
|
|
|
> |
|
|
|
trigger: () => ( |
|
|
|
<NPopconfirm onPositiveClick={this.handleReleaseWorkflow}> |
|
|
|
<NButton |
|
|
|
{{ |
|
|
|
size='small' |
|
|
|
default: () => |
|
|
|
type={releaseState === 'ONLINE' ? 'warning' : 'error'} |
|
|
|
releaseState === 'ONLINE' |
|
|
|
tag='div' |
|
|
|
? t('project.workflow.confirm_to_offline') |
|
|
|
circle |
|
|
|
: t('project.workflow.confirm_to_online'), |
|
|
|
class='btn-publish' |
|
|
|
trigger: () => ( |
|
|
|
> |
|
|
|
<NIcon> |
|
|
|
<NIcon> |
|
|
|
{releaseState === 'ONLINE' ? ( |
|
|
|
{releaseState === 'ONLINE' ? ( |
|
|
|
<DownloadOutlined /> |
|
|
|
<DownloadOutlined /> |
|
|
@ -205,10 +205,10 @@ export default defineComponent({ |
|
|
|
<UploadOutlined /> |
|
|
|
<UploadOutlined /> |
|
|
|
)} |
|
|
|
)} |
|
|
|
</NIcon> |
|
|
|
</NIcon> |
|
|
|
) |
|
|
|
</NButton> |
|
|
|
}} |
|
|
|
) |
|
|
|
</NPopconfirm> |
|
|
|
}} |
|
|
|
</NButton> |
|
|
|
</NPopconfirm> |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NTooltip> |
|
|
|
</NTooltip> |
|
|
@ -253,33 +253,28 @@ export default defineComponent({ |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
default: () => t('project.workflow.delete'), |
|
|
|
default: () => t('project.workflow.delete'), |
|
|
|
trigger: () => ( |
|
|
|
trigger: () => ( |
|
|
|
<NButton |
|
|
|
<NPopconfirm |
|
|
|
size='small' |
|
|
|
|
|
|
|
type='error' |
|
|
|
|
|
|
|
tag='div' |
|
|
|
|
|
|
|
circle |
|
|
|
|
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
class='btn-delete' |
|
|
|
onPositiveClick={this.handleDeleteWorkflow} |
|
|
|
> |
|
|
|
> |
|
|
|
<NPopconfirm |
|
|
|
{{ |
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
default: () => t('project.workflow.delete_confirm'), |
|
|
|
onPositiveClick={this.handleDeleteWorkflow} |
|
|
|
trigger: () => ( |
|
|
|
> |
|
|
|
<NButton |
|
|
|
{{ |
|
|
|
size='small' |
|
|
|
default: () => t('project.workflow.delete_confirm'), |
|
|
|
type='error' |
|
|
|
icon: () => ( |
|
|
|
tag='div' |
|
|
|
<NIcon> |
|
|
|
circle |
|
|
|
<InfoCircleFilled /> |
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
</NIcon> |
|
|
|
class='btn-delete' |
|
|
|
), |
|
|
|
> |
|
|
|
trigger: () => ( |
|
|
|
|
|
|
|
<NIcon> |
|
|
|
<NIcon> |
|
|
|
<DeleteOutlined /> |
|
|
|
<DeleteOutlined /> |
|
|
|
</NIcon> |
|
|
|
</NIcon> |
|
|
|
) |
|
|
|
</NButton> |
|
|
|
}} |
|
|
|
) |
|
|
|
</NPopconfirm> |
|
|
|
}} |
|
|
|
</NButton> |
|
|
|
</NPopconfirm> |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NTooltip> |
|
|
|
</NTooltip> |
|
|
|