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> { ...@@ -141,7 +141,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
opened !== index opened !== index
? html` ? html`
<a-box padding="sm" @click=${() => this.opened.next(index)}> <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> <mwc-icon> ${entity.Frage ? 'question_answer' : 'warning'} </mwc-icon>
<a-text style=${{ flex: '1' }}> ${entity.Frage || 'kein Fragetext angegeben'} </a-text> <a-text style=${{ flex: '1' }}> ${entity.Frage || 'kein Fragetext angegeben'} </a-text>
</ccb-stack> </ccb-stack>
...@@ -373,11 +373,14 @@ export class CCBContentsAdmin extends AdornisDBView<Content> { ...@@ -373,11 +373,14 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
const array2d = contents.split('\n').map(line => line.split(';')); const array2d = contents.split('\n').map(line => line.split(';'));
console.log(array2d[0][0]); console.log(array2d[0][0]);
console.log(array2d[0 + 1][0]); console.log(array2d[0 + 1][0]);
if (array2d[0][0] === 'A.1') { for (var i = 0; i <= 0; i++) {
console.log('Super!'); for (var j = 0; j < 21; j++) {
} else { if (array2d[i][j].startsWith('#')) {
console.log('Nicht Super :('); console.log('Ein Geschenk mit Schleife und Hashtag. Wow!');
}
}
} }
console.log('Ende Gelände.');
// await Promise.all( // await Promise.all(
// contents // contents
...@@ -411,6 +414,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> { ...@@ -411,6 +414,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
protected filterForOwn() { protected filterForOwn() {
return html` return html`
<mwc-button <mwc-button
icon="filter_list"
?raised=${this.filterForOwnEntities} ?raised=${this.filterForOwnEntities}
@click=${() => this.filterForOwnEntities.next(!this.filterForOwnEntities.getValue())} @click=${() => this.filterForOwnEntities.next(!this.filterForOwnEntities.getValue())}
> >
...@@ -422,6 +426,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> { ...@@ -422,6 +426,7 @@ export class CCBContentsAdmin extends AdornisDBView<Content> {
protected filterForNoIntent() { protected filterForNoIntent() {
return html` return html`
<mwc-button <mwc-button
icon="filter_list"
?raised=${this.filterForNoIntentField} ?raised=${this.filterForNoIntentField}
@click=${() => this.filterForNoIntentField.next(!this.filterForNoIntentField.getValue())} @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