This commit is contained in:
Fenris Wolf 2024-10-01 06:43:29 +02:00
parent 0b3d47114f
commit f48ea6b9cd

View file

@ -108,15 +108,17 @@ namespace _zeitbild.frontend_web.pages
{ {
"name": "calendar_id", "name": "calendar_id",
"input": new lib_plankton.zoo_input.class_input_selection( "input": new lib_plankton.zoo_input.class_input_selection(
(await _zeitbild.frontend_web.backend.calendar_list()) (
.filter( (await _zeitbild.frontend_web.backend.calendar_list())
(entry) => (["edit","admin"].includes(entry.access_level)) .filter(
) (entry) => (["edit","admin"].includes(entry.access_level))
.map( )
(entry) => ({ .map(
"value": entry.id.toFixed(0), (entry) => ({
"label": entry.name, "value": entry.id.toFixed(0),
}) "label": entry.name,
})
)
) )
), ),
"label": lib_plankton.translate.get("calendar.calendar") "label": lib_plankton.translate.get("calendar.calendar")