Commit 3a1b4bb4 authored by Kristjan Kruus's avatar Kristjan Kruus

added external link option to buttons on the homepage

parent a73dba0a
......@@ -32,7 +32,10 @@
<div class="col">
<div class="buttons justify-content-end">
<ng-container *ngIf="card.actions && card.actions.buttons">
<a *ngFor="let button of card.actions.buttons" [routerLink]="[button.link]" class="btn btn-primary btn-lg btn-01" role="button">{{button.label}}</a>
<span *ngFor="let button of card.actions.buttons">
<a *ngIf="button.type !== 'external'" [routerLink]="[button.link]" class="btn btn-primary btn-lg btn-01" role="button">{{button.label}}</a>
<a *ngIf="button.type === 'external'" target="_blank" href="{{button.link}}" class="btn btn-primary btn-lg btn-01" role="button">{{button.label}}</a>
</span>
</ng-container>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment