mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-10 02:06:24 +02:00
feat: Small tweaks for workspace creation form, b=closes #8974, c=common, tabs, workspaces
This commit is contained in:
parent
7bf0b42afd
commit
4da5a40419
9 changed files with 48 additions and 31 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue