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

+5
View File
@@ -36,6 +36,11 @@
t.el.addEventListener('click', ev => { if (!ev.target.closest('.tab-x, input') && !dragJustEnded) activate(t); });
t.el.querySelector('.tab-x').onclick = ev => { ev.stopPropagation(); closeTab(t); };
t.el.querySelector('.tab-title').addEventListener('dblclick', ev => { ev.stopPropagation(); rename(t); });
// Its machine's Порты, Статус, Изменить: a right click on the title.
t.el.addEventListener('contextmenu', ev => {
const p = t.panes.includes(activePane) ? activePane : t.panes[0];
if (window.MachineDialog && !ev.target.closest('input')) MachineDialog.menu(ev, p.agent);
});
if (desk) t.el.addEventListener('pointerdown', ev => { if (!ev.target.closest('.tab-x, input')) startDrag(ev, 'tab', t); });
const at = index == null ? tabs.length : index;
tablist.insertBefore(t.el, tabs[at] ? tabs[at].el : mark);