Allow toggle of about display in people listing

This commit is contained in:
SondreB 2023-01-15 19:02:58 +01:00
parent 06afd85da0
commit 0738f9cae4
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,9 @@
<mat-slide-toggle class="options-slider" [(ngModel)]="showMuted" (change)="optionsUpdated($event, 2)">Show muted</mat-slide-toggle>
<mat-slide-toggle class="options-slider" [(ngModel)]="showCached" (change)="optionsUpdated($event, 3)">Show cached</mat-slide-toggle>
</p>
<p>
<mat-slide-toggle class="options-slider" [(ngModel)]="showAbout">Show about</mat-slide-toggle>
</p>
</mat-expansion-panel>
</mat-accordion>
</div>
@ -41,7 +44,7 @@
</app-event-header>
<app-profile-actions [profile]="profile"></app-profile-actions>
</div>
<div class="content clickable">{{ profile.about }}</div>
<div *ngIf="showAbout" class="content clickable">{{ profile.about }}</div>
</mat-card>
</ng-template>
<ng-template [ngIf]="items.loading"><mat-spinner class="loading"></mat-spinner></ng-template>

View File

@ -25,6 +25,7 @@ export class PeopleComponent {
showBlocked = false;
showCached = false;
showMuted = false;
showAbout = true;
items$ = this.profileService.items$;