From 3d49cec6c93adb4578e381c22cb74c1cf1660aeb Mon Sep 17 00:00:00 2001
From: Davut Beyazit <davut.beyazit@mni.thm.de>
Date: Sun, 9 May 2021 22:13:49 +0200
Subject: [PATCH] Added option for icon for buttons Added cloud icon for Topic
 Cloud Dialog

---
 .../topic-cloud-filter/topic-cloud-filter.component.html     | 1 +
 .../dialog-action-buttons.component.html                     | 2 +-
 .../dialog-action-buttons/dialog-action-buttons.component.ts | 5 +++++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/app/components/shared/_dialogs/topic-cloud-filter/topic-cloud-filter.component.html b/src/app/components/shared/_dialogs/topic-cloud-filter/topic-cloud-filter.component.html
index 78e1575b9..4905f5fb3 100644
--- a/src/app/components/shared/_dialogs/topic-cloud-filter/topic-cloud-filter.component.html
+++ b/src/app/components/shared/_dialogs/topic-cloud-filter/topic-cloud-filter.component.html
@@ -7,6 +7,7 @@
 <app-dialog-action-buttons
   buttonsLabelSection="content"
   confirmButtonLabel="continue"
+  buttonIcon="cloud"
 
   [cancelButtonClickAction]="cancelButtonActionCallback()"
   [confirmButtonClickAction]="confirmButtonActionCallback()"
diff --git a/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.html b/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.html
index b4e749345..a9dcf74d4 100644
--- a/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.html
+++ b/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.html
@@ -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"
diff --git a/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.ts b/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.ts
index f75ff02d8..4fa8c7d7d 100644
--- a/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.ts
+++ b/src/app/components/shared/dialog/dialog-action-buttons/dialog-action-buttons.component.ts
@@ -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.
-- 
GitLab