mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-26 00:06:13 +08:00
Initial commit
This commit is contained in:
17
ui/src/actions/settingsActions.ts
Normal file
17
ui/src/actions/settingsActions.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// List of settings related action types.
|
||||
export const POLL_INTERVAL_CHANGE = "POLL_INTERVAL_CHANGE";
|
||||
|
||||
interface PollIntervalChangeAction {
|
||||
type: typeof POLL_INTERVAL_CHANGE;
|
||||
value: number; // new poll interval value in seconds
|
||||
}
|
||||
|
||||
// Union of all settings related action types.
|
||||
export type SettingsActionTypes = PollIntervalChangeAction;
|
||||
|
||||
export function pollIntervalChange(value: number) {
|
||||
return {
|
||||
type: POLL_INTERVAL_CHANGE,
|
||||
value,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user