Skip to content

feature: allow editing workspace deadline in UI #2721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 30, 2022
Prev Previous commit
Next Next commit
use fancy operator
  • Loading branch information
johnstcn committed Jun 30, 2022
commit e14765ec2382f942e8c8d71c8484393a4ca97272
4 changes: 2 additions & 2 deletions site/src/components/WorkspaceSchedule/WorkspaceSchedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const WorkspaceSchedule: FC<WorkspaceScheduleProps> = ({
<Stack direction="row" spacing={0}>
<IconButton
size="small"
disabled={deadlineMinusDisabled(workspace, now ? now : dayjs())}
disabled={deadlineMinusDisabled(workspace, now ?? dayjs())}
className={styles.editDeadline}
onClick={onDeadlineMinus}
>
Expand All @@ -126,7 +126,7 @@ export const WorkspaceSchedule: FC<WorkspaceScheduleProps> = ({
</IconButton>
<IconButton
size="small"
disabled={deadlinePlusDisabled(workspace, now ? now : dayjs())}
disabled={deadlinePlusDisabled(workspace, now ?? dayjs())}
className={styles.editDeadline}
onClick={onDeadlinePlus}
>
Expand Down