Skip to content

Commit

Permalink
Added lms link to published icon in tile editing for assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
allomanta committed Oct 23, 2024
1 parent ef9d97c commit 381a045
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,13 @@ const SelectAssignments: FC<SelectAssignmentsProps> = ({ value: entries, onChang
align: 'center',
render: (_: string, entry: TileEntry) => {
const assignment = assignments.get(entry.content_id);
return assignment !== undefined && assignment.published ?
<CheckCircleOutlined className='text-success' />
: <CloseCircleOutlined className='text-failure' />;
return (
<a href={assignment?.html_url} target='_blank' rel='noopener noreferrer'>
{assignment !== undefined && assignment.published ?
<CheckCircleOutlined className='text-success' />
: <CloseCircleOutlined className='text-failure' />}
</a>
);
},
},
{
Expand Down

0 comments on commit 381a045

Please sign in to comment.