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:
parent
75a3b82d2c
commit
bf6e493f89
8 changed files with 29 additions and 9 deletions
|
@ -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)'] },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue