fix notification error on service

This commit is contained in:
lxsang 2020-08-06 23:15:38 +02:00
parent 2b67084392
commit 5ef3bfe7f0
2 changed files with 3 additions and 3 deletions

View File

@ -599,7 +599,7 @@ namespace OS {
): void { ): void {
const mt = this.meta(); const mt = this.meta();
let icon: string = undefined; let icon: string = undefined;
if (mt.icon) { if (mt && mt.icon) {
icon = `${mt.path}/${mt.icon}`; icon = `${mt.path}/${mt.icon}`;
} }
return announcer.trigger(t, { return announcer.trigger(t, {
@ -608,7 +608,7 @@ namespace OS {
data: { data: {
m: m, m: m,
icon: icon, icon: icon,
iconclass: mt.iconclass, iconclass: mt?mt.iconclass:undefined,
e: e, e: e,
}, },
}); });

View File

@ -105,7 +105,7 @@ namespace OS {
constructor(name: string, args: AppArgumentsType[]) { constructor(name: string, args: AppArgumentsType[]) {
super(name, args); super(name, args);
this.icon = undefined; this.icon = undefined;
this.iconclass = "fa-paper-plane-o"; this.iconclass = "fa fa-paper-plane-o";
this.text = ""; this.text = "";
this.timer = undefined; this.timer = undefined;
this.holder = undefined; this.holder = undefined;