mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
src: style sweep
This commit is contained in:
parent
b0cab3bdca
commit
bc04a22c70
@ -95,13 +95,13 @@ class DashboardController extends ApiControllerBase
|
||||
$result['modules'] = [];
|
||||
$metadata = $this->getMetadata();
|
||||
foreach ($metadata as $md) {
|
||||
foreach($md as $widgetId => $metadataAttributes) {
|
||||
foreach ($md as $widgetId => $metadataAttributes) {
|
||||
$widgetId = (string)$widgetId;
|
||||
$fname = (string)$metadataAttributes->filename;
|
||||
$endpoints = (array)($metadataAttributes->endpoints->endpoint ?? []);
|
||||
$translations = (array)($metadataAttributes->translations ?? []);
|
||||
|
||||
if(!$this->canAccessEndpoints($endpoints)) {
|
||||
if (!$this->canAccessEndpoints($endpoints)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ class DashboardController extends ApiControllerBase
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach($translations as $key => $value) {
|
||||
foreach ($translations as $key => $value) {
|
||||
$translations[$key] = gettext($value);
|
||||
}
|
||||
|
||||
|
||||
@ -285,4 +285,4 @@
|
||||
<start>Start</start>
|
||||
</translations>
|
||||
</services>
|
||||
</metadata>
|
||||
</metadata>
|
||||
|
||||
@ -93,7 +93,7 @@ export default class Services extends BaseTableWidget {
|
||||
</span>
|
||||
</div>
|
||||
`);
|
||||
|
||||
|
||||
$buttonContainer.append(this.serviceControl(actions));
|
||||
|
||||
super.updateTable('services-table', [[description, $buttonContainer.prop('outerHTML')]], service.id);
|
||||
@ -125,4 +125,4 @@ export default class Services extends BaseTableWidget {
|
||||
$('#services-table').empty().append($error);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user