[BUG][UI Next]fix the problem about Batch delete not working (#9080)
* fix the problem about Batch delete not working while click the border of the button * try to fix e2e Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>subscribe-dev-mailing-list
parent
926fad861e
commit
da2e85e9ec
|
|
@ -47,7 +47,6 @@ public final class WorkflowDefinitionTab extends NavBarPage implements ProjectDe
|
|||
@FindBys({
|
||||
@FindBy(className = "btn-delete-all"),
|
||||
@FindBy(className = "n-button__content"),
|
||||
@FindBy(tagName = "span")
|
||||
})
|
||||
private WebElement buttonDeleteAll;
|
||||
|
||||
|
|
|
|||
|
|
@ -176,19 +176,19 @@ export default defineComponent({
|
|||
{{
|
||||
default: () => t('project.workflow.delete'),
|
||||
trigger: () => (
|
||||
<NButton
|
||||
tag='div'
|
||||
type='primary'
|
||||
disabled={this.checkedRowKeys.length <= 0}
|
||||
class='btn-delete-all'
|
||||
>
|
||||
<NPopconfirm onPositiveClick={this.batchDeleteWorkflow}>
|
||||
{{
|
||||
default: () => t('project.workflow.delete_confirm'),
|
||||
trigger: () => t('project.workflow.delete')
|
||||
trigger: () => (
|
||||
<NButton
|
||||
tag='div'
|
||||
type='primary'
|
||||
disabled={this.checkedRowKeys.length <= 0}
|
||||
class='btn-delete-all'
|
||||
>{t('project.workflow.delete')}</NButton>
|
||||
)
|
||||
}}
|
||||
</NPopconfirm>
|
||||
</NButton>
|
||||
)
|
||||
}}
|
||||
</NTooltip>
|
||||
|
|
|
|||
Loading…
Reference in New Issue