|
|
@ -184,13 +184,6 @@ 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 |
|
|
|
|
|
|
|
size='small' |
|
|
|
|
|
|
|
type={releaseState === 'ONLINE' ? 'warning' : 'error'} |
|
|
|
|
|
|
|
tag='div' |
|
|
|
|
|
|
|
circle |
|
|
|
|
|
|
|
class='btn-publish' |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NPopconfirm onPositiveClick={this.handleReleaseWorkflow}> |
|
|
|
<NPopconfirm onPositiveClick={this.handleReleaseWorkflow}> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
default: () => |
|
|
|
default: () => |
|
|
@ -198,6 +191,13 @@ export default defineComponent({ |
|
|
|
? t('project.workflow.confirm_to_offline') |
|
|
|
? t('project.workflow.confirm_to_offline') |
|
|
|
: t('project.workflow.confirm_to_online'), |
|
|
|
: t('project.workflow.confirm_to_online'), |
|
|
|
trigger: () => ( |
|
|
|
trigger: () => ( |
|
|
|
|
|
|
|
<NButton |
|
|
|
|
|
|
|
size='small' |
|
|
|
|
|
|
|
type={releaseState === 'ONLINE' ? 'warning' : 'error'} |
|
|
|
|
|
|
|
tag='div' |
|
|
|
|
|
|
|
circle |
|
|
|
|
|
|
|
class='btn-publish' |
|
|
|
|
|
|
|
> |
|
|
|
<NIcon> |
|
|
|
<NIcon> |
|
|
|
{releaseState === 'ONLINE' ? ( |
|
|
|
{releaseState === 'ONLINE' ? ( |
|
|
|
<DownloadOutlined /> |
|
|
|
<DownloadOutlined /> |
|
|
@ -205,10 +205,10 @@ export default defineComponent({ |
|
|
|
<UploadOutlined /> |
|
|
|
<UploadOutlined /> |
|
|
|
)} |
|
|
|
)} |
|
|
|
</NIcon> |
|
|
|
</NIcon> |
|
|
|
|
|
|
|
</NButton> |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NPopconfirm> |
|
|
|
</NPopconfirm> |
|
|
|
</NButton> |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NTooltip> |
|
|
|
</NTooltip> |
|
|
@ -252,6 +252,13 @@ export default defineComponent({ |
|
|
|
<NTooltip trigger={'hover'}> |
|
|
|
<NTooltip trigger={'hover'}> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
default: () => t('project.workflow.delete'), |
|
|
|
default: () => t('project.workflow.delete'), |
|
|
|
|
|
|
|
trigger: () => ( |
|
|
|
|
|
|
|
<NPopconfirm |
|
|
|
|
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
|
|
|
|
onPositiveClick={this.handleDeleteWorkflow} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ |
|
|
|
|
|
|
|
default: () => t('project.workflow.delete_confirm'), |
|
|
|
trigger: () => ( |
|
|
|
trigger: () => ( |
|
|
|
<NButton |
|
|
|
<NButton |
|
|
|
size='small' |
|
|
|
size='small' |
|
|
@ -261,25 +268,13 @@ export default defineComponent({ |
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
class='btn-delete' |
|
|
|
class='btn-delete' |
|
|
|
> |
|
|
|
> |
|
|
|
<NPopconfirm |
|
|
|
|
|
|
|
disabled={releaseState === 'ONLINE'} |
|
|
|
|
|
|
|
onPositiveClick={this.handleDeleteWorkflow} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ |
|
|
|
|
|
|
|
default: () => t('project.workflow.delete_confirm'), |
|
|
|
|
|
|
|
icon: () => ( |
|
|
|
|
|
|
|
<NIcon> |
|
|
|
|
|
|
|
<InfoCircleFilled /> |
|
|
|
|
|
|
|
</NIcon> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
trigger: () => ( |
|
|
|
|
|
|
|
<NIcon> |
|
|
|
<NIcon> |
|
|
|
<DeleteOutlined /> |
|
|
|
<DeleteOutlined /> |
|
|
|
</NIcon> |
|
|
|
</NIcon> |
|
|
|
|
|
|
|
</NButton> |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NPopconfirm> |
|
|
|
</NPopconfirm> |
|
|
|
</NButton> |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</NTooltip> |
|
|
|
</NTooltip> |
|
|
|