add separator and show service names sorted

This commit is contained in:
Girish Ramakrishnan
2025-09-10 12:27:00 +02:00
parent 92444c05aa
commit e384995b63

View File

@@ -45,6 +45,9 @@ function onActionMenu(service, event) {
label: t('main.action.edit'),
visible: service.status !== 'disabled' && service.memoryLimit,
action: onEdit.bind(null, service),
}, {
separator: true,
visible: service.status !== 'disabled' && service.memoryLimit,
}, {
icon: 'fa-solid fa-sync-alt',
label: t('services.restartActionTooltip'),
@@ -108,7 +111,7 @@ async function refreshAll() {
if (error) return console.error(error);
// init with all services
for (const s of serviceList) {
for (const s of serviceList.sort()) {
if (!services[s]) services[s] = { id: s, name: s, config: {} };
}