1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-09 19:05:29 +02:00

feat: Add comfirmation before deleting a workspace, b=no-bug, c=common, workspaces

This commit is contained in:
Mr. M 2025-06-12 19:13:50 +02:00
parent 75a3b82d2c
commit bf6e493f89
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
8 changed files with 29 additions and 9 deletions

View file

@ -107,14 +107,14 @@ export var ZenCustomizableUI = new (class {
_initCreateNewButton(window) {
const button = window.document.getElementById('zen-create-new-button');
button.addEventListener('command', () => {
if (button.hasAttribute('open')) {
if (button.hasAttribute('zen-ignore-open')) {
return;
}
const image = button.querySelector('image');
const popup = window.document.getElementById('zenCreateNewPopup');
button.setAttribute('open', 'true');
button.setAttribute('zen-ignore-open', 'true');
const handlePopupHidden = () => {
button.removeAttribute('open');
button.removeAttribute('zen-ignore-open');
window.gZenUIManager.motion.animate(
image,
{ transform: ['rotate(45deg)', 'rotate(0deg)'] },