From 74aa79d64e009810e24973d7a2ab6ac3fd15cee5 Mon Sep 17 00:00:00 2001 From: Cathy Hu Date: Tue, 1 Sep 2020 20:29:26 +0200 Subject: [PATCH] [frontend] Fixes in twitter platform module --- .../twitter-callback/twitter-callback.component.ts | 8 ++++++++ .../twitter-settings/twitter-settings.component.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/kibicara-frontend/src/app/platforms/twitter/twitter-callback/twitter-callback.component.ts b/kibicara-frontend/src/app/platforms/twitter/twitter-callback/twitter-callback.component.ts index ff4af55..fdfdc16 100644 --- a/kibicara-frontend/src/app/platforms/twitter/twitter-callback/twitter-callback.component.ts +++ b/kibicara-frontend/src/app/platforms/twitter/twitter-callback/twitter-callback.component.ts @@ -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']); } diff --git a/kibicara-frontend/src/app/platforms/twitter/twitter-settings/twitter-settings.component.html b/kibicara-frontend/src/app/platforms/twitter/twitter-settings/twitter-settings.component.html index 69f4765..ad716c9 100644 --- a/kibicara-frontend/src/app/platforms/twitter/twitter-settings/twitter-settings.component.html +++ b/kibicara-frontend/src/app/platforms/twitter/twitter-settings/twitter-settings.component.html @@ -23,7 +23,7 @@ - +
@{{ twitter.username }}