Skip to content

Commit

Permalink
refactor(theme-shared): add new confirmation types and interfaces
Browse files Browse the repository at this point in the history
related issue: #2537
  • Loading branch information
thediaval committed Jan 9, 2020
1 parent 21d747e commit 009bde8
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,29 @@ import { Toaster } from './toaster';
import { Config } from '@abp/ng.core';

export namespace Confirmation {
export interface Options extends Toaster.Options {
export interface Options {
id?: any;
closable?: boolean;
messageLocalizationParams?: string[];
titleLocalizationParams?: string[];
hideCancelBtn?: boolean;
hideYesBtn?: boolean;
cancelText?: Config.LocalizationParam;
yesText?: Config.LocalizationParam;
}

export interface DialogData {
message: Config.LocalizationParam;
title?: Config.LocalizationParam;
severity?: Severity;
options?: Partial<Options>;
}

export type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';

export enum Status {
confirm = 'confirm',
reject = 'reject',
dismiss = 'dismiss',
}
}

0 comments on commit 009bde8

Please sign in to comment.