[frontend] Fixes in twitter platform module

This commit is contained in:
Cathy Hu 2020-09-01 20:29:26 +02:00
parent 5cf06a647f
commit 74aa79d64e
2 changed files with 9 additions and 1 deletions

View file

@ -31,6 +31,14 @@ export class TwitterCallbackComponent implements OnInit {
this.route.snapshot.queryParams['hood'],
]);
});
} else if (
this.route.snapshot.queryParams['hood'] &&
this.route.snapshot.queryParams['denied']
) {
this.router.navigate([
'/dashboard/hoods',
this.route.snapshot.queryParams['hood'],
]);
} else {
this.router.navigate(['/404']);
}

View file

@ -23,7 +23,7 @@
</button>
<mat-divider></mat-divider>
</mat-list-item>
<mat-list-item *ngFor="let twitter of twitters">
<mat-list-item *ngFor="let twitter of twitters | twitterCorpses">
<div class="entry">
@{{ twitter.username }}
<mat-slide-toggle