Verified Commit ca12b1cf authored by Jakob Moser's avatar Jakob Moser
Browse files

Show todos as well on Fachschaftssitzung page

The components don't yet all exist, but I wanted to have this committed already.

Co-authored-by: default avatarBig Pickle <big-pickle@opencode.ai>
parent c5d69739
Loading
Loading
Loading
Loading
Loading
+7 −1
Changes for portal/static/js/components/pages/Fachschaftssitzung.mjs: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
import { Base } from "./Base.mjs"
import { Agenda } from "../pieces/Agenda.mjs"
import { Todo } from "../pieces/Todo.mjs"
import { agenda } from "../../model/Agenda.mjs"
import { todo } from "../../model/Todo.mjs"
import { ButtonAndTextLink } from "../pieces/ButtonAndTextLink.mjs"
import {
    getLatestProtocolMetadata,
@@ -21,6 +23,7 @@ export const Fachschaftssitzung = {
    },
    fetch() {
        agenda.fetch()
        todo.fetch()
        latestProtocol.fetch()
    },
    oninit() {
@@ -28,7 +31,10 @@ export const Fachschaftssitzung = {
    },
    view() {
        return m(Base, [
            m(Agenda, agenda),
            m(".columns", [
                m(Agenda, { onSaved: () => todo.fetch(true) }),
                m(Todo, { onSaved: () => agenda.fetch(true) }),
            ]),
            m("section", [
                m(
                    "p",