From fa15f3c3b47f6e98a325fcd79c4cf499501de4d5 Mon Sep 17 00:00:00 2001 From: lxsang Date: Sun, 16 Sep 2018 20:08:43 +0200 Subject: [PATCH] fix notification application icon bug --- src/core/BaseModel.coffee | 4 +++- src/packages/DummyApp/main.css | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/BaseModel.coffee b/src/core/BaseModel.coffee index e2a5b0b..df0d9b7 100644 --- a/src/core/BaseModel.coffee +++ b/src/core/BaseModel.coffee @@ -85,7 +85,9 @@ class BaseModel publish: (t, m, e) -> mt = @meta() - _courrier.trigger t, { id: @pid, name: @name, data: { m: m, icon: mt.icon, iconclass: mt.iconclass }, error: e } + icon = undefined + icon = "#{mt.path}/#{mt.icon}" if mt.icon + _courrier.trigger t, { id: @pid, name: @name, data: { m: m, icon: icon, iconclass: mt.iconclass }, error: e } notify: (m) -> @publish "notification", m diff --git a/src/packages/DummyApp/main.css b/src/packages/DummyApp/main.css index 01c49a5..fb74b4e 100644 --- a/src/packages/DummyApp/main.css +++ b/src/packages/DummyApp/main.css @@ -1,7 +1,7 @@ -.dummyapp-icon { +/*.dummyapp-icon { background-image: url("icon.png"); background-color: blueviolet; display: block; width: 32px; height: 32px; -} \ No newline at end of file +}*/ \ No newline at end of file