feat(admin): show group schedule status
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
export const MINUTES_PER_WEEK = 7 * 24 * 60;
|
||||
const MAX_WINDOWS = 50;
|
||||
|
||||
export function groupScheduleStatus(windowCount: number) {
|
||||
if (windowCount <= 0) return "Unrestricted";
|
||||
return `${windowCount} ${windowCount === 1 ? "window" : "windows"}`;
|
||||
}
|
||||
|
||||
export interface WeeklyAccessWindow {
|
||||
startMinuteOfWeek: number;
|
||||
endMinuteOfWeek: number;
|
||||
|
||||
Reference in New Issue
Block a user