remove alert-modal footer entirely if alertFooter boolean is false
This commit is contained in:
parent
b7a5cf34ab
commit
b8ac412137
|
@ -20,14 +20,14 @@ declare var UIkit: any;
|
||||||
<div *ngIf="message" [hidden]=!alertMessage [innerHTML]="message | safeHtml"></div>
|
<div *ngIf="message" [hidden]=!alertMessage [innerHTML]="message | safeHtml"></div>
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="choice || okButton || cancelButton" class="uk-modal-footer">
|
<div *ngIf="(choice || okButton || cancelButton) && alertFooter" class="uk-modal-footer">
|
||||||
<div class="uk-grid uk-flex uk-flex-middle" uk-grid>
|
<div class="uk-grid uk-flex uk-flex-middle" uk-grid>
|
||||||
<label *ngIf="choice" class="uk-width-expand">
|
<label *ngIf="choice" class="uk-width-expand">
|
||||||
<input type="checkbox" [(ngModel)]="select">
|
<input type="checkbox" [(ngModel)]="select">
|
||||||
<span class="uk-margin-small-left">Don't show this message again</span>
|
<span class="uk-margin-small-left">Don't show this message again</span>
|
||||||
</label>
|
</label>
|
||||||
<div [ngClass]="(choice)?'uk-width-auto':'uk-width-1-1'">
|
<div [ngClass]="(choice)?'uk-width-auto':'uk-width-1-1'">
|
||||||
<div *ngIf="alertFooter" class="uk-flex-right uk-grid uk-grid-small" uk-grid>
|
<div class="uk-flex-right uk-grid uk-grid-small" uk-grid>
|
||||||
<span *ngIf="okButton" [class.uk-flex-last]="!okButtonLeft">
|
<span *ngIf="okButton" [class.uk-flex-last]="!okButtonLeft">
|
||||||
<button class="uk-button uk-button-primary" [disabled]="okDisabled"
|
<button class="uk-button uk-button-primary" [disabled]="okDisabled"
|
||||||
[class.uk-disabled]="okDisabled" (click)="ok()">{{okButtonText}}</button>
|
[class.uk-disabled]="okDisabled" (click)="ok()">{{okButtonText}}</button>
|
||||||
|
|
Loading…
Reference in New Issue