mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
feat(vacay): add manual school holiday calendars
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { schoolHolidayCatalogApi } from '../api/schoolHolidayCatalog'
|
||||
import { isEffectivelyOffline } from '../sync/networkMode'
|
||||
|
||||
// Instance administration is online-only: a shared catalog must not replay stale edits.
|
||||
export const schoolHolidayCatalogRepo = {
|
||||
...schoolHolidayCatalogApi,
|
||||
requireOnline() {
|
||||
if (isEffectivelyOffline()) throw new Error('School holiday administration requires a connection')
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user