src: style sweep

This commit is contained in:
Franco Fichtner 2024-07-09 21:23:02 +02:00
parent b0cab3bdca
commit bc04a22c70
3 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -285,4 +285,4 @@
<start>Start</start>
</translations>
</services>
</metadata>
</metadata>

View File

@ -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);
}
}
}