Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Heading, VStack, HStack, Spinner, Center, Text } from "@chakra-ui/react
import React, { useState } from "react";

import { useDagServiceGetDag } from "openapi/queries";
import { Dialog } from "src/components/ui";
import { Dialog, Tooltip } from "src/components/ui";
import { RadioCardItem, RadioCardRoot } from "src/components/ui/RadioCard";

import RunBackfillForm from "../DagActions/RunBackfillForm";
Expand Down Expand Up @@ -93,7 +93,7 @@ const TriggerDAGModal: React.FC<TriggerDAGModalProps> = ({
</Center>
) : (
<>
{dag && hasSchedule ? (
{dag ? (
<RadioCardRoot
my={4}
onChange={(event) => {
Expand All @@ -107,11 +107,14 @@ const TriggerDAGModal: React.FC<TriggerDAGModalProps> = ({
label="Single Run"
value={RunMode.SINGLE}
/>
<RadioCardItem
description="Run this DAG for a range of dates"
label="Backfill"
value={RunMode.BACKFILL}
/>
<Tooltip content="Backfill requires a schedule" disabled={hasSchedule}>
<RadioCardItem
description="Run this DAG for a range of dates"
disabled={!hasSchedule}
label="Backfill"
value={RunMode.BACKFILL}
/>
</Tooltip>
</HStack>
</RadioCardRoot>
) : undefined}
Expand Down