update firebase

This commit is contained in:
2021-07-04 20:49:35 +02:00
parent 1605be82a3
commit f720d472c8
6 changed files with 672 additions and 508 deletions

View File

@@ -1,4 +1,5 @@
<div class="list-item" *ngIf="show">
<div>{{ show.date.toDate() | date: "dd.MM.yyyy" }}</div>
<div><app-user-name [userId]="show.owner"></app-user-name></div>
<div>{{ show.showType | showType }}</div>
</div>

View File

@@ -3,7 +3,7 @@
.list-item {
padding: 5px 20px;
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-columns: 100px 200px auto;
min-height: 34px;
& > div {

View File

@@ -18,7 +18,7 @@ export class ListComponent {
}
public getPublicShows(songs: Show[]): Show[] {
return songs.filter(_ => _.published);
return songs.filter(_ => _.published).sort((a, b) => (b.date < a.date ? -1 : b.date > a.date ? 1 : 0));
}
public getPrivateSongs(songs: Show[]): Show[] {