From 19e64b5be3c5200fc3f7f46a47cfd8cf08c13aa7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 31 Jan 2021 09:09:38 +0200 Subject: Slightly improved logic for showing "None" in language and technologies fields of user profile --- src/DevHive.Angular/src/app/components/profile/profile.component.html | 4 ++-- src/DevHive.Angular/src/app/components/profile/profile.component.ts | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/DevHive.Angular') diff --git a/src/DevHive.Angular/src/app/components/profile/profile.component.html b/src/DevHive.Angular/src/app/components/profile/profile.component.html index ac0c07e..9cb4dd2 100644 --- a/src/DevHive.Angular/src/app/components/profile/profile.component.html +++ b/src/DevHive.Angular/src/app/components/profile/profile.component.html @@ -26,7 +26,7 @@ {{ lang.name }} -
+
 None
@@ -37,7 +37,7 @@ {{ tech.name }} -
+
 None
diff --git a/src/DevHive.Angular/src/app/components/profile/profile.component.ts b/src/DevHive.Angular/src/app/components/profile/profile.component.ts index 7717505..620c931 100644 --- a/src/DevHive.Angular/src/app/components/profile/profile.component.ts +++ b/src/DevHive.Angular/src/app/components/profile/profile.component.ts @@ -21,8 +21,6 @@ export class ProfileComponent implements OnInit { public dataArrived = false; public user: User; public userPosts: Post[] = []; - public showNoLangMsg = false; - public showNoTechMsg = false; constructor(private _router: Router, private _userService: UserService, private _languageService: LanguageService, private _technologyService: TechnologyService, private _feedService: FeedService, private _location: Location) { } @@ -53,7 +51,6 @@ export class ProfileComponent implements OnInit { }); } else { - this.showNoLangMsg = true; this.loadTechnologies(); } } @@ -68,7 +65,6 @@ export class ProfileComponent implements OnInit { }); } else { - this.showNoTechMsg = true; this.loadPosts(); } } -- cgit v1.2.3