Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spa/src/app/site/hca-footer/hca-footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<a href="{{portalUrl}}/help">Help</a>
<a href="{{portalUrl}}/privacy">Privacy</a>
<a href="{{portalUrl}}/contact">Contact</a>
<a href="{{portalUrl}}/system-status">System Status</a>
<a href="{{portalUrl}}/system-status" *ngIf="showSystemStatus()">System Status</a>
<a href="{{portalUrl}}/feedback">Feedback</a>
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions spa/src/app/site/hca-footer/hca-footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ export class HCAFooterComponent {
this.portalUrl = this.configService.getPortalURL();
}

/**
* Returns true when environment is not v2.
*
* @returns {boolean}
*/
public showSystemStatus(): boolean {

return !this.configService.isV2();
}

/**
* Kill subscriptions on destroy of component.
*/
Expand Down