update firebase
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user