Skip to content

Commit

Permalink
add yieldMainTimer
Browse files Browse the repository at this point in the history
  • Loading branch information
endorpersand committed Dec 19, 2024
1 parent d8e9741 commit e15f168
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const { getDefaults, createContext, resetContext, getStoreContext } = createStor
enableMotionRoundRobin: true,
enableMotionExt: true,
pauseMainTimer: true,
yieldMainTimer: true
}
},
() => ({}),
Expand Down
9 changes: 7 additions & 2 deletions src/lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,14 @@ export type Preferences = {
enableMotionExt: boolean,
/**
* Whether the main timer in a moderated caucus (and related)
* should automatically pause when the delegate timer pauses.
* should automatically pause when the delegate's time elapses.
*/
pauseMainTimer: boolean
pauseMainTimer: boolean,
/**
* Whether the main timer in a moderated caucus (and related)
* should keep the time yielded by the delegate.
*/
yieldMainTimer: boolean
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/routes/admin/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
enableMotionRoundRobin: { label: "Enable round robin" },
enableMotionExt: { label: "Enable extensions" },
pauseMainTimer: { label: "Pause main timer when delegate timer elapses" },
yieldMainTimer: { label: "Return time yielded by delegates to main timer" }
} satisfies Record<keyof Preferences, unknown>;
const _preferences: Writable<Record<string, boolean>> = preferences;
const modalStore = getModalStore();
Expand Down

0 comments on commit e15f168

Please sign in to comment.