From eedac3e312c66499ca5ff9d72388c31b25813225 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Wed, 6 Mar 2019 12:11:34 -0800 Subject: Revert "multiple asible servers support" Some functionality was accidentally removed This reverts commit 611c9da62c2e266f9facd97dc9f340ce311060a3. Change-Id: I1aefbbc0ede8cdda59acc8bdf7b047e506aad813 Signed-off-by: Patrick Brady Issue-ID: APPC-1510 --- src/app/shared/confirmModal/confirm.component.ts | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src/app/shared/confirmModal/confirm.component.ts') diff --git a/src/app/shared/confirmModal/confirm.component.ts b/src/app/shared/confirmModal/confirm.component.ts index 9da7991..5fbf4b3 100644 --- a/src/app/shared/confirmModal/confirm.component.ts +++ b/src/app/shared/confirmModal/confirm.component.ts @@ -28,6 +28,8 @@ import { DialogComponent, DialogService } from 'ng2-bootstrap-modal'; export interface ConfirmModel { title: string; message: string; + cancelButtonText: string; + confirmButtonText: string; } @Component({ @@ -36,15 +38,15 @@ export interface ConfirmModel { ` @@ -52,20 +54,22 @@ export interface ConfirmModel { export class ConfirmComponent extends DialogComponent implements ConfirmModel { title: string; message: string; + cancelButtonText: string; + confirmButtonText: string; constructor(dialogService: DialogService) { super(dialogService); } - onConfirm() { - // we set dialog result as true on click on Yes button, + confirm() { + // we set dialog result as true on click on confirm button, // then we can get dialog result from caller code this.result = true; this.close(); } - onCancel() { - // we set dialog result as false on click on Yes button, + cancel() { + // we set dialog result as false on click on cancel/close button, // then we can get dialog result from caller code this.result = false; this.close(); -- cgit 1.2.3-korg