mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-09 16:19:47 +00:00
5e481d49da
* style: labels on added time * style: remove mentions of PiP * refactor: unify usage of ms for timers * refactor: create events with 0 duration * style: several small tweaks * refactor: keep block when applying delays * feat: blocks have titles * style: improvements in time entry warnings * style: override progress bar styles * style: prevent overflow * feat: show character count in editor * refactor: provide initial payload * refactor: lower test boundary * refactor: get colour from swatches * style: rename title block * chore: version bump
13 lines
296 B
TypeScript
13 lines
296 B
TypeScript
import { socket } from './WebsocketAdapter.js';
|
|
|
|
/**
|
|
* Utility function to notify clients that the REST data is stale
|
|
* @param payload -- possible patch payload
|
|
*/
|
|
export function sendRefetch(payload: any | null = null) {
|
|
socket.sendAsJson({
|
|
type: 'ontime-refetch',
|
|
payload,
|
|
});
|
|
}
|