feat: machine pages Порты, Статус, Изменить as dialogs over the current page; Действие column in the ports table
This commit is contained in:
1 parent
2009796421
commit
d92696226e
11 files changed
+141
-5
No files matched your search
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user