feat: machine pages Порты, Статус, Изменить as dialogs over the current page; Действие column in the ports table

This commit is contained in:
redtea committed 2026-10-15 21:49:18 +03:00
1 parent 2009796421
commit d92696226e
11 files changed
+141 -5

No files matched your search

+7
View File
@@ -109,6 +109,13 @@
catch (e) { alert('Нет связи с сервером'); return; }
if (signedOut(r)) { location.href = '/login'; return; }
const to = new URL(r.url);
// From a dialog to a view (a machine deleted): the dialog closes.
if (!area.classList.contains('view') && viewOf(to.pathname)) {
const d = area.closest('dialog');
if (d) d.close();
go(to.href);
return;
}
if (area.classList.contains('view')) {
const v = viewOf(to.pathname);
if (v && v !== area.dataset.view) { go(to.href); return; }