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

Show status pills in agenda

parent ef5415f9
Loading
Loading
Loading
Loading
+14 −1
Changes for portal/static/js/components/pieces/Agenda.mjs: 14 added lines, 1 removed line.
Original line number Diff line number Diff line
import { StatusPill } from "./StatusPill.mjs"

export const Agenda = {
    view(vnode) {
        return m(
@@ -7,7 +9,18 @@ export const Agenda = {
                vnode.attrs.items
                    ? m(
                          "ol",
                          vnode.attrs.items.map(item => m("li", item)),
                          vnode.attrs.items.map(item =>
                              m(
                                  "li",
                                  this.editable
                                      ? m(
                                            "div",
                                            item.name,
                                            !item.default && m(StatusPill),
                                        )
                                      : item.name,
                              ),
                          ),
                      )
                    : m("span.message", vnode.attrs.message),
            ]),