feat: adds list editor

feat: adds list editor
This commit is contained in:
2022-12-23 15:15:11 +01:00
parent 08dcfd179b
commit 74e7d8c9e7
36 changed files with 389 additions and 182 deletions

View File

@@ -0,0 +1,36 @@
<nb-card>
<nb-card-header>
<h1>Followings</h1>
<div class="divider"></div>
<app-filters></app-filters>
</nb-card-header>
<nb-card-body>
<nb-list>
<nb-list-item *ngFor="let following of followings$ | async">
<app-account [account]="following">
<div body>
<div *ngIf="following.lists.length > 0">
<h4>Lists</h4>
<ul>
<li *ngFor="let list of following.lists">
<a [routerLink]="['/lists']" [queryParams]="{listId: list.id}">{{list.title}}</a>
<nb-icon icon="trash-2-outline" class="nb-icon-remove"
(click)="removeAccountFromList(following.id, list.id)"></nb-icon>
</li>
</ul>
</div>
</div>
<div footer>
<select class="list-select" #listSelect>
<option *ngFor="let list of lists$ | async" [value]="list.id">{{list.title}}</option>
</select>
<button class="add-to-list-button" nbButton
status="basic"
(click)="addAccountToSelectedList(following.id, listSelect)">Add to list
</button>
</div>
</app-account>
</nb-list-item>
</nb-list>
</nb-card-body>
</nb-card>