feat: Small tweaks for workspace creation form, b=closes #8974, c=common, tabs, workspaces

This commit is contained in:
Mr. M
2025-06-11 21:28:01 +02:00
parent 7bf0b42afd
commit 4da5a40419
9 changed files with 48 additions and 31 deletions

View File

@@ -107,6 +107,9 @@ export var ZenCustomizableUI = new (class {
_initCreateNewButton(window) {
const button = window.document.getElementById('zen-create-new-button');
button.addEventListener('command', () => {
if (button.hasAttribute('open')) {
return;
}
const image = button.querySelector('image');
const popup = window.document.getElementById('zenCreateNewPopup');
button.setAttribute('open', 'true');