mirror of
https://github.com/opnsense/plugins.git
synced 2025-12-10 10:30:21 -06:00
sysutils/dechw: fix ACL, fixes https://github.com/opnsense/plugins/issues/4233
This commit is contained in:
parent
539193d14b
commit
0068b7295e
@ -0,0 +1,8 @@
|
||||
<acl>
|
||||
<page-dashboard-widget-dechw>
|
||||
<name>Dashboard: Deciso Hardware Information widget</name>
|
||||
<patterns>
|
||||
<pattern>api/dechw/info/powerstatus</pattern>
|
||||
</patterns>
|
||||
</page-dashboard-widget-dechw>
|
||||
</acl>
|
||||
@ -75,7 +75,7 @@ export default class DecHW extends BaseWidget {
|
||||
|
||||
async onWidgetTick() {
|
||||
$('.power').tooltip('hide');
|
||||
let data = await this.ajaxCall('/api/dechw/info/powerStatus');
|
||||
let data = await this.ajaxCall('/api/dechw/info/powerstatus');
|
||||
|
||||
if (!data || data.status === 'failed') {
|
||||
$('#status').html(`<div class="error-message" style="margin: 10px;">${this.translations.nopower}</div>`);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<dechw>
|
||||
<filename>DecHW.js</filename>
|
||||
<endpoints>
|
||||
<endpoint>/api/dechw/info/powerStatus</endpoint>
|
||||
<endpoint>/api/dechw/info/powerstatus</endpoint>
|
||||
</endpoints>
|
||||
<translations>
|
||||
<title>Deciso Hardware Information</title>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user