diff options
Diffstat (limited to 'src/angular/modals/models/modal-config.ts')
-rw-r--r-- | src/angular/modals/models/modal-config.ts | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/src/angular/modals/models/modal-config.ts b/src/angular/modals/models/modal-config.ts index 635942b..8cf955e 100644 --- a/src/angular/modals/models/modal-config.ts +++ b/src/angular/modals/models/modal-config.ts @@ -1,4 +1,4 @@ -import { Placement } from "../../common/enums"; +import { IButtonComponent } from "../../buttons/ibutton.interface"; export interface IModalConfig { size?: string; // xl|l|md|sm|xsm @@ -6,33 +6,22 @@ export interface IModalConfig { message?: string; buttons?: IModalButtonComponent[]; testId?: string; - type?: string; // 'info|error|alert'; + type?: ModalType; } -export interface IButtonComponent { - text: string; - disabled?: boolean; - type?: string; - testId?: string; - preventDoubleClick?: boolean; - icon_name?: string; - icon_position?: string; - show_spinner?: boolean; - spinner_position?: Placement; - size?: string; -} - -export interface IModalButtonComponent extends IButtonComponent{ +export interface IModalButtonComponent extends IButtonComponent { id?: string; - callback?: Function; + callback?: () => void; closeModal?: boolean; } export enum ModalType { - alert = "alert", - error = "error", - standard = "info", - custom = "custom" + info = 'info', + warning = 'warning', + error = 'error', + success = 'success', + action = 'action', + custom = 'custom' } export enum ModalSize { |