|
@@ -1,6 +1,6 @@
|
|
|
<script>
|
|
|
- export let schueler, privat;
|
|
|
- let teams_anzeigen;
|
|
|
+ export let schueler, privat, einstellungen = {};
|
|
|
+ let teams_anzeigen = einstellungen.teams_anzeigen;
|
|
|
let schueler_verbergen;
|
|
|
$: pool.query(`UPDATE einstellungen SET teams_anzeigen=$1`, [teams_anzeigen])
|
|
|
const { Pool } = R("pg");
|
|
@@ -56,15 +56,18 @@
|
|
|
<td>
|
|
|
<span
|
|
|
class="tag"
|
|
|
- class:is-danger={!s.konto}
|
|
|
+ class:is-warning={s.konto === undefined || s.konto === null}
|
|
|
+ class:is-danger={s.konto === false}
|
|
|
class:is-success={s.konto}>Konto</span>
|
|
|
<span
|
|
|
class="tag"
|
|
|
- class:is-danger={!s.video}
|
|
|
+ class:is-warning={s.video === undefined || s.video === null}
|
|
|
+ class:is-danger={s.video === false}
|
|
|
class:is-success={s.video}>Video</span>
|
|
|
<span
|
|
|
class="tag"
|
|
|
- class:is-danger={!s.audio}
|
|
|
+ class:is-warning={s.video === undefined || s.audio === null}
|
|
|
+ class:is-danger={s.audio === false}
|
|
|
class:is-success={s.audio}>Audio</span>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -95,15 +98,18 @@
|
|
|
<td>
|
|
|
<span
|
|
|
class="tag"
|
|
|
- class:is-danger={!l.konto}
|
|
|
+ class:is-warning={l.konto === undefined || l.konto === null}
|
|
|
+ class:is-danger={l.konto === false}
|
|
|
class:is-success={l.konto}>Konto</span>
|
|
|
<span
|
|
|
class="tag"
|
|
|
- class:is-danger={!l.video}
|
|
|
+ class:is-warning={l.video === undefined || l.video === null}
|
|
|
+ class:is-danger={l.video === false}
|
|
|
class:is-success={l.video}>Video</span>
|
|
|
<span
|
|
|
class="tag"
|
|
|
- class:is-danger={!l.audio}
|
|
|
+ class:is-warning={l.audio === undefined || l.audio === null}
|
|
|
+ class:is-danger={l.audio === false}
|
|
|
class:is-success={l.audio}>Audio</span>
|
|
|
</td>
|
|
|
</tr>
|