Skip to content

Commit

Permalink
Fix main showing icon on the overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriiNazarenkoTine committed Jul 12, 2024
1 parent 4bfe051 commit 79905d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = rr-manager
SPK_VERS = 2.0
SPK_REV = 63
SPK_REV = 64
SPK_ICON = src/rr-manager.png

DSM_UI_DIR = ui
Expand Down
6 changes: 4 additions & 2 deletions src/src/panels/healthPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default
},
onDataReady: function () {
let status = "normal";
this.iconTemplate.overwrite(this.getComponent("icon").getEl(), { status: status }),
this.iconTemplate.overwrite(this.getComponent("icon").getEl(), { status: status,
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')"
}),
this.titleTemplate.overwrite(this.upperPanel.getComponent("title").getEl(), {
status: status,
}),
Expand Down Expand Up @@ -56,7 +58,7 @@ export default
return Ext.apply(panelConfig, e), panelConfig;
},
createIconTpl: function () {
return new Ext.XTemplate('<div class="health-icon {status}"></div>', {
return new Ext.XTemplate('<div class="health-icon {status}" style="{style}"></div>', {
compiled: !0,
disableFormats: !0,
});
Expand Down

0 comments on commit 79905d7

Please sign in to comment.