This commit is contained in:
@@ -1,25 +1,7 @@
|
||||
<ng-container *ngIf="visible">
|
||||
<div *ngIf="color != null; then raised else flat"></div>
|
||||
<ng-template #raised>
|
||||
<button mat-raised-button [color]="color" [routerLink]="link" [attr.disabled]="disabled">
|
||||
<div fxHide.lt-sm="true">
|
||||
<mat-icon class="icon-button">{{icon}}</mat-icon>
|
||||
<span>{{title}}</span>
|
||||
</div>
|
||||
<div fxHide.gt-xs="true" [matTooltip]="title">
|
||||
<mat-icon class="icon-button">{{icon}}</mat-icon>
|
||||
</div>
|
||||
</button>
|
||||
</ng-template>
|
||||
<ng-template #flat>
|
||||
<button mat-button [routerLink]="link" [attr.disabled]="disabled">
|
||||
<div fxHide.lt-sm="true">
|
||||
<mat-icon class="icon-button">{{icon}}</mat-icon>
|
||||
<span>{{title}}</span>
|
||||
</div>
|
||||
<div fxHide.gt-xs="true" [matTooltip]="title">
|
||||
<mat-icon class="icon-button">{{icon}}</mat-icon>
|
||||
</div>
|
||||
</button>
|
||||
</ng-template>
|
||||
<ng-container>
|
||||
<span style="margin-left: 1px; margin-right: 2px;">
|
||||
<a mat-icon-button [matTooltip]="tooltip" [href]="link" target="_blank" class="bg-lighter">
|
||||
<i [class]="icon"></i>
|
||||
</a>
|
||||
</span>
|
||||
</ng-container>
|
||||
Reference in New Issue
Block a user