Skip to content

Commit 79905d7

Browse files
Fix main showing icon on the overview page
1 parent 4bfe051 commit 79905d7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SPK_NAME = rr-manager
22
SPK_VERS = 2.0
3-
SPK_REV = 63
3+
SPK_REV = 64
44
SPK_ICON = src/rr-manager.png
55

66
DSM_UI_DIR = ui

src/src/panels/healthPanel.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export default
1212
},
1313
onDataReady: function () {
1414
let status = "normal";
15-
this.iconTemplate.overwrite(this.getComponent("icon").getEl(), { status: status }),
15+
this.iconTemplate.overwrite(this.getComponent("icon").getEl(), { status: status,
16+
style:"background-image:url('webapi/entry.cgi?api=SYNO.Core.Synohdpack&version=1&method=getHDIcon&res=72&retina=false&path=webman/3rdparty/rr-manager/images/rr-manager-{0}.png&app_version=0.1')"
17+
}),
1618
this.titleTemplate.overwrite(this.upperPanel.getComponent("title").getEl(), {
1719
status: status,
1820
}),
@@ -56,7 +58,7 @@ export default
5658
return Ext.apply(panelConfig, e), panelConfig;
5759
},
5860
createIconTpl: function () {
59-
return new Ext.XTemplate('<div class="health-icon {status}"></div>', {
61+
return new Ext.XTemplate('<div class="health-icon {status}" style="{style}"></div>', {
6062
compiled: !0,
6163
disableFormats: !0,
6264
});

0 commit comments

Comments
 (0)