guan404ming commented on code in PR #51564:
URL: https://github.com/apache/airflow/pull/51564#discussion_r2312399144
##########
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:
I've implemented the BulkMarkTaskInstancesAs feature, but it looks like our
backend doesn't currently support the bulkClearTaskInstances feature. We'll
need to implement the backend support first in order to complete the patch for
task instances.
--
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]