fix notification application icon bug

This commit is contained in:
lxsang 2018-09-16 20:08:43 +02:00
parent 4ce83df4bb
commit fa15f3c3b4
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
.dummyapp-icon {
/*.dummyapp-icon {
background-image: url("icon.png");
background-color: blueviolet;
display: block;
width: 32px;
height: 32px;
}
}*/