guan404ming commented on code in PR #51564:
URL: https://github.com/apache/airflow/pull/51564#discussion_r2314272971
##########
airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx:
##########
@@ -249,6 +323,41 @@ export const TaskInstances = () => {
onStateChange={setTableURLState}
total={data?.total_entries}
/>
+ <ActionBar.Root closeOnInteractOutside={false}
open={Boolean(selectedRows.size)}>
+ <ActionBar.Content>
+ <ActionBar.SelectionTrigger>
+ {selectedRows.size} {translate("common:selected")}
+ </ActionBar.SelectionTrigger>
+ <ActionBar.Separator />
+ <Tooltip
+ content={`${translate("common:modal.delete.button")} ${translate(
+ `common:${selectedRows.size > 1 ? "taskInstance_other" :
"taskInstance_one"}`,
+ )}`}
+ disabled={selectedRows.size === 0}
+ >
+ <DeleteTaskInstancesButton
Review Comment:
- have? -> No, we don't have bulk clear currently in UI. It still needs to
update API to support the feature.
- want? -> Some users may want to clear multiple TI. It would take lots of
time to clear one by one. So I think this is optional one but it would be
useful in some cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]