From a70157881246ec091f5da09ab768bdb4b55e9b9c Mon Sep 17 00:00:00 2001 From: Stefan Plociennik <stefan.plociennik@mni.thm.de> Date: Sun, 2 May 2021 13:23:56 +0200 Subject: [PATCH] changed colors of confirmDialog buttons; removed export tag of keyword interface --- .../topic-cloud-confirm-dialog.component.html | 4 ++-- .../topic-cloud-confirm-dialog.component.scss | 7 +++++++ .../topic-cloud-dialog/topic-cloud-dialog.component.ts | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.html b/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.html index 2936174ed..af197ebab 100644 --- a/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.html +++ b/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.html @@ -1,6 +1,6 @@ <h1 mat-dialog-title>Do you really want to delete the topic "{{data.topic}}"?</h1> <div mat-dialog-actions> - <button mat-button [mat-dialog-close]="false">No</button> - <button mat-button [mat-dialog-close]="true" cdkFocusInitial>Yes</button> + <button class="primary" mat-stroked-button [mat-dialog-close]="false">Cancel</button> + <button class="warn" mat-stroked-button [mat-dialog-close]="true">Delete</button> </div> diff --git a/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.scss b/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.scss index e69de29bb..f94193784 100644 --- a/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.scss +++ b/src/app/components/shared/_dialogs/topic-cloud-confirm-dialog/topic-cloud-confirm-dialog.component.scss @@ -0,0 +1,7 @@ +.primary { + background-color: var(--primary); +} + +.warn { + background-color: var(--red); +} diff --git a/src/app/components/shared/_dialogs/topic-cloud-dialog/topic-cloud-dialog.component.ts b/src/app/components/shared/_dialogs/topic-cloud-dialog/topic-cloud-dialog.component.ts index 792432ac8..c15a57332 100644 --- a/src/app/components/shared/_dialogs/topic-cloud-dialog/topic-cloud-dialog.component.ts +++ b/src/app/components/shared/_dialogs/topic-cloud-dialog/topic-cloud-dialog.component.ts @@ -89,7 +89,7 @@ export class TopicCloudDialogComponent implements OnInit { } } -export interface Keyword { +interface Keyword { keywordID: number; keyword: string; questions: string[]; -- GitLab