Skip to content

Commit

Permalink
Merge pull request #18 from bekk/dataIcon
Browse files Browse the repository at this point in the history
Show dataIcon i AccordionButton when data in Task
  • Loading branch information
vegarrsm authored Sep 7, 2023
2 parents 47ca6e9 + c8a03a5 commit e323883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { TaskRunButton } from 'src/components/TaskRunButton';
import React from 'react';
import { DotButton } from 'src/components/DotButton';
import { dateFormatText } from 'src/components/dateFormatText';
import { AttachmentIcon } from '@chakra-ui/icons';

interface TaskAccordionButtonProps {
taskName: string;
executionTime: Date;
consecutiveFailures: number;
picked: boolean;
taskInstance: string;
taskData: string | null;
refetch: () => void;
}

Expand All @@ -21,6 +23,7 @@ export const TaskAccordionButton: React.FC<TaskAccordionButtonProps> = ({
consecutiveFailures,
picked,
taskInstance,
taskData,
refetch,
}) => {
return (
Expand All @@ -38,6 +41,7 @@ export const TaskAccordionButton: React.FC<TaskAccordionButtonProps> = ({
}
consecutiveFailures={consecutiveFailures}
/>
{taskData != 'null' && <AttachmentIcon />}
</Box>
<Box flex="2" textAlign="left">
{taskName}
Expand Down
1 change: 1 addition & 0 deletions db-scheduler-ui-frontend/src/components/TaskCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const TaskCard: React.FC<TaskCardProps> = ({
taskName={taskName}
consecutiveFailures={consecutiveFailures}
executionTime={executionTime}
taskData={taskData}
refetch={refetch}
/>
<Divider color={'#E0E0E0'} />
Expand Down

0 comments on commit e323883

Please sign in to comment.