mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38:21 +01:00
fix notification error on service
This commit is contained in:
parent
2b67084392
commit
5ef3bfe7f0
@ -599,7 +599,7 @@ namespace OS {
|
||||
): void {
|
||||
const mt = this.meta();
|
||||
let icon: string = undefined;
|
||||
if (mt.icon) {
|
||||
if (mt && mt.icon) {
|
||||
icon = `${mt.path}/${mt.icon}`;
|
||||
}
|
||||
return announcer.trigger(t, {
|
||||
@ -608,7 +608,7 @@ namespace OS {
|
||||
data: {
|
||||
m: m,
|
||||
icon: icon,
|
||||
iconclass: mt.iconclass,
|
||||
iconclass: mt?mt.iconclass:undefined,
|
||||
e: e,
|
||||
},
|
||||
});
|
||||
|
@ -105,7 +105,7 @@ namespace OS {
|
||||
constructor(name: string, args: AppArgumentsType[]) {
|
||||
super(name, args);
|
||||
this.icon = undefined;
|
||||
this.iconclass = "fa-paper-plane-o";
|
||||
this.iconclass = "fa fa-paper-plane-o";
|
||||
this.text = "";
|
||||
this.timer = undefined;
|
||||
this.holder = undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user