Skip to content

Commit

Permalink
feat(): improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony133 committed Mar 30, 2022
1 parent f61e52a commit 9a4a4b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/homepage/header/versions/versions.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</svg>
</a>
<div class="dropdown-content" [@openCloseAnimation]="isOpen">
<a class="dropdown-item" href="#">Latest(v{{ versions }})</a>
<a *ngIf="linkLatest != true" class="dropdown-item" href="#">Latest(v{{ versions }})</a>
<div class="dropdown-divider"></div>
<a href="https://docs.nestjs.com/v7/" target="_blank">7.x </a>
<a href="https://docs.nestjs.com/v6/" target="_blank">6.x</a>
Expand Down
2 changes: 2 additions & 0 deletions src/app/homepage/header/versions/versions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class VersionsComponent implements OnInit {
@Input() icon: string;

versions: Versions[];
linkLatest: boolean = false;

constructor(private readonly versionsService: VersionsService) {}

Expand All @@ -36,6 +37,7 @@ export class VersionsComponent implements OnInit {
this.versions = data['version'];
},
(error) => {
this.linkLatest = true;
throw error;
},
);
Expand Down

0 comments on commit 9a4a4b6

Please sign in to comment.