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