Update message.service.ts
https://github.com/aspnetboilerplate/aspnetboilerplate/pull/4909
This commit is contained in:
Родитель
d30ae5335e
Коммит
3006fc5d7f
|
@ -3,31 +3,24 @@
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class MessageService {
|
export class MessageService {
|
||||||
|
|
||||||
info(message: string, title?: string, isHtml?: boolean): any {
|
info(message: string, title?: string, options?: any): any {
|
||||||
return abp.message.info(message, title, isHtml);
|
return abp.message.info(message, title, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
success(message: string, title?: string, isHtml?: boolean): any {
|
success(message: string, title?: string, options?: any): any {
|
||||||
return abp.message.success(message, title, isHtml);
|
return abp.message.success(message, title, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
warn(message: string, title?: string, isHtml?: boolean): any {
|
warn(message: string, title?: string, options?: any): any {
|
||||||
return abp.message.warn(message, title, isHtml);
|
return abp.message.warn(message, title, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
error(message: string, title?: string, isHtml?: boolean): any {
|
error(message: string, title?: string, options?: any): any {
|
||||||
return abp.message.error(message, title, isHtml);
|
return abp.message.error(message, title, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
confirm(message: string, callback?: (result: boolean) => void): any;
|
confirm(message: string, title?: string, callback?: (result: boolean) => void, options?: any): any {
|
||||||
confirm(message: string, title?: string, callback?: (result: boolean) => void, isHtml?: boolean): any;
|
return abp.message.confirm(message, title, callback, options);
|
||||||
|
|
||||||
confirm(message: string, titleOrCallBack?: string | ((result: boolean) => void), callback?: (result: boolean) => void, isHtml?: boolean): any {
|
|
||||||
if (typeof titleOrCallBack == 'string') {
|
|
||||||
return abp.message.confirm(message, titleOrCallBack as string, callback, isHtml);
|
|
||||||
} else {
|
|
||||||
return abp.message.confirm(message, undefined, titleOrCallBack as ((result: boolean) => void), isHtml);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Загрузка…
Ссылка в новой задаче