Skip to content
Snippets Groups Projects
Commit 3d49cec6 authored by Davut Beyazit's avatar Davut Beyazit
Browse files

Added option for icon for buttons

Added cloud icon for Topic Cloud Dialog
parent 41f35189
Branches
Tags
No related merge requests found
......@@ -7,6 +7,7 @@
<app-dialog-action-buttons
buttonsLabelSection="content"
confirmButtonLabel="continue"
buttonIcon="cloud"
[cancelButtonClickAction]="cancelButtonActionCallback()"
[confirmButtonClickAction]="confirmButtonActionCallback()"
......
......@@ -20,7 +20,7 @@
class="mat-flat-button {{ confirmButtonType }}-confirm-button"
attr.aria-labelledby="{{ ariaPrefix + 'confirm' | translate }}"
(click)="performConfirmButtonClickAction()"
>{{ buttonsLabelSection + '.' + confirmButtonLabel | translate}}</button>
><mat-icon *ngIf="buttonIcon" style="margin-right: 5px;">{{buttonIcon}}</mat-icon>{{ buttonsLabelSection + '.' + confirmButtonLabel | translate}}</button>
<button
*ngIf="cancelButtonClickAction !== undefined"
type="button"
......
......@@ -23,6 +23,11 @@ export class DialogActionButtonsComponent implements OnInit {
*/
@Input() buttonsLabelSection: string;
/**
* Icon for confirm.
*/
@Input() buttonIcon: string;
/**
* The i18n label identifier of the confirm button.
......
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