diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-01-31 09:09:38 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-01-31 09:09:38 +0200 |
| commit | 19e64b5be3c5200fc3f7f46a47cfd8cf08c13aa7 (patch) | |
| tree | 11fb0a61721ac9063ad3544877f790fcd96cdd1c /src/DevHive.Angular | |
| parent | dd0f823a6d0e269dcae022caf911b235ce621ab1 (diff) | |
| download | DevHive-19e64b5be3c5200fc3f7f46a47cfd8cf08c13aa7.tar DevHive-19e64b5be3c5200fc3f7f46a47cfd8cf08c13aa7.tar.gz DevHive-19e64b5be3c5200fc3f7f46a47cfd8cf08c13aa7.zip | |
Slightly improved logic for showing "None" in language and technologies fields of user profile
Diffstat (limited to 'src/DevHive.Angular')
| -rw-r--r-- | src/DevHive.Angular/src/app/components/profile/profile.component.html | 4 | ||||
| -rw-r--r-- | src/DevHive.Angular/src/app/components/profile/profile.component.ts | 4 |
2 files changed, 2 insertions, 6 deletions
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 }} </div> </div> - <div *ngIf="showNoLangMsg"> + <div *ngIf="user.languages.length === 0"> None </div> </div> @@ -37,7 +37,7 @@ {{ tech.name }} </div> </div> - <div *ngIf="showNoTechMsg"> + <div *ngIf="user.technologies.length === 0"> None </div> </div> 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(); } } |
