add no sessions message
This commit is contained in:
parent
69790b4716
commit
eebaaa7f0e
@ -25,6 +25,11 @@
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
|
|
||||||
|
&.-text {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
>.theirname {
|
>.theirname {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
grid-area: their-name;
|
grid-area: their-name;
|
||||||
|
|||||||
@ -7,6 +7,9 @@ export default class SessionList {
|
|||||||
view({attrs: { models, onSelect, onDelete } }) {
|
view({attrs: { models, onSelect, onDelete } }) {
|
||||||
return m("section.wb-session-list", [
|
return m("section.wb-session-list", [
|
||||||
m("ol", [
|
m("ol", [
|
||||||
|
models.length === 0
|
||||||
|
? m("li.item.-text._alternate._apply", "Du hast no koane Sätz…")
|
||||||
|
: null,
|
||||||
models.map((s, i) => m("li.item._alternate._apply", [
|
models.map((s, i) => m("li.item._alternate._apply", [
|
||||||
m("span.theirname", s.theirTeam !== "" ? s.theirTeam : "Se"),
|
m("span.theirname", s.theirTeam !== "" ? s.theirTeam : "Se"),
|
||||||
m("span.ourname", s.ourTeam !== "" ? s.ourTeam : "Mia"),
|
m("span.ourname", s.ourTeam !== "" ? s.ourTeam : "Mia"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user