mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
sysutils/dechw: fix ACL, fixes https://github.com/opnsense/plugins/issues/4233
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user