Browse Source

[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>
3.0.0/version-upgrade
labbomb 3 years ago committed by GitHub
parent
commit
da2e85e9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/project/workflow/WorkflowDefinitionTab.java
  2. 16
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/index.tsx

1
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/project/workflow/WorkflowDefinitionTab.java

@ -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;

16
dolphinscheduler-ui-next/src/views/projects/workflow/definition/index.tsx

@ -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…
Cancel
Save