Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add UI for autostart workspace days #10263

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 8 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Make fmt
  • Loading branch information
Emyrk committed Oct 13, 2023
commit a25f575d08c55b7ebd0bd22b9ae4b2f0543a508c
2 changes: 1 addition & 1 deletion site/src/pages/CreateTemplatePage/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const newTemplate = (formData: CreateTemplateData) => {
},
autostart_requirement: {
days_of_week: autostart_requirement_days_of_week,
}
},
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ const validFormValues: TemplateScheduleFormValues = {
failure_cleanup_enabled: false,
inactivity_cleanup_enabled: false,
dormant_autodeletion_cleanup_enabled: false,
autostart_requirement_days_of_week: ["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]
autostart_requirement_days_of_week: [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday",
],
};

const renderTemplateSchedulePage = async () => {
Expand Down
9 changes: 8 additions & 1 deletion site/src/utils/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ export const quietHoursDisplay = (
return display;
};

export type TemplateAutostartRequirementDaysValue = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
export type TemplateAutostartRequirementDaysValue =
| "monday"
| "tuesday"
| "wednesday"
| "thursday"
| "friday"
| "saturday"
| "sunday";

export type TemplateAutostopRequirementDaysValue =
| "off"
Expand Down