From 1db9ba48bf88d169108fa9355172b9e80d98ad28 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 2 Feb 2021 08:51:03 +0200 Subject: Added a back to profile button to post page --- .../src/app/components/post-page/post-page.component.html | 1 + .../src/app/components/post-page/post-page.component.ts | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src/DevHive.Angular') diff --git a/src/DevHive.Angular/src/app/components/post-page/post-page.component.html b/src/DevHive.Angular/src/app/components/post-page/post-page.component.html index 32326b9..5d29e5d 100644 --- a/src/DevHive.Angular/src/app/components/post-page/post-page.component.html +++ b/src/DevHive.Angular/src/app/components/post-page/post-page.component.html @@ -1,6 +1,7 @@
+
diff --git a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts index 9974d90..ef149a0 100644 --- a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts +++ b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts @@ -58,6 +58,10 @@ export class PostPageComponent implements OnInit { this._router.navigate(['/']); } + backToProfile(): void { + this._router.navigate(['/profile/' + this.post.creatorUsername]); + } + editPost(): void { if (this._tokenService.getTokenFromSessionStorage() === '') { this._router.navigate(['/login']); -- cgit v1.2.3