Skip to content

Commit 9032cff

Browse files
tirkarthinailo2c
authored andcommitted
Add asset event create button to asset list. (apache#47611)
1 parent 7e9a754 commit 9032cff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

airflow/ui/src/pages/AssetsList/AssetsList.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { useTableURLState } from "src/components/DataTable/useTableUrlState";
2828
import { ErrorAlert } from "src/components/ErrorAlert";
2929
import { SearchBar } from "src/components/SearchBar";
3030
import { SearchParamsKeys } from "src/constants/searchParams";
31+
import { CreateAssetEvent } from "src/pages/Asset/CreateAssetEvent";
3132
import { pluralize } from "src/utils";
3233

3334
import { DependencyPopover } from "./DependencyPopover";
@@ -67,6 +68,12 @@ const columns: Array<ColumnDef<AssetResponse>> = [
6768
enableSorting: false,
6869
header: () => "Producing Tasks",
6970
},
71+
{
72+
accessorKey: "trigger",
73+
cell: ({ row }) => <CreateAssetEvent asset={row.original} withText={false} />,
74+
enableSorting: false,
75+
header: "",
76+
},
7077
];
7178

7279
const NAME_PATTERN_PARAM = SearchParamsKeys.NAME_PATTERN;

0 commit comments

Comments
 (0)