Commit 2d05ef09 authored by Yorrd's avatar Yorrd
Browse files

fix: small additions

parent fa95314a
Pipeline #1417 passed with stages
in 12 minutes
......@@ -141,7 +141,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
opened !== index
? html`
<a-box padding="sm" @click=${() => this.opened.next(index)}>
<ccb-stack horizontal size="md" centered>
<ccb-stack horizontal size="md" centered style=${entity.Frage ? {} : { color: 'orange' }}>
<mwc-icon> ${entity.Frage ? 'question_answer' : 'warning'} </mwc-icon>
<a-text style=${{ flex: '1' }}> ${entity.Frage || 'kein Fragetext angegeben'} </a-text>
</ccb-stack>
......@@ -373,11 +373,14 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
const array2d = contents.split('\n').map(line => line.split(';'));
console.log(array2d[0][0]);
console.log(array2d[0 + 1][0]);
if (array2d[0][0] === 'A.1') {
console.log('Super!');
} else {
console.log('Nicht Super :(');
for (var i = 0; i <= 0; i++) {
for (var j = 0; j < 21; j++) {
if (array2d[i][j].startsWith('#')) {
console.log('Ein Geschenk mit Schleife und Hashtag. Wow!');
}
}
}
console.log('Ende Gelände.');
// await Promise.all(
// contents
......@@ -411,6 +414,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
protected filterForOwn() {
return html`
<mwc-button
icon="filter_list"
?raised=${this.filterForOwnEntities}
@click=${() => this.filterForOwnEntities.next(!this.filterForOwnEntities.getValue())}
>
......@@ -422,6 +426,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
protected filterForNoIntent() {
return html`
<mwc-button
icon="filter_list"
?raised=${this.filterForNoIntentField}
@click=${() => this.filterForNoIntentField.next(!this.filterForNoIntentField.getValue())}
>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment