fix: Restrict promo creation to current workspace container, p=#11897

* fix: Restrict promo creation to current workspace container

* Discard changes to src/zen/tabs/ZenEssentialsPromo.mjs

* Discard changes to src/zen/workspaces/ZenWorkspaces.mjs

---------

Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
This commit is contained in:
Andrey Bochkarev
2026-01-14 17:57:35 +03:00
committed by GitHub
parent 18601f04a2
commit 65a43ecd3e

View File

@@ -982,9 +982,6 @@
return;
}
let essentialsPromoStatus = this.createZenEssentialsPromo();
if (essentialsPromoStatus === "shown") {
return;
}
this.clearDragOverVisuals();
if (
!draggedTab.hasAttribute("zen-essential") &&
@@ -992,8 +989,11 @@
) {
return;
}
if (essentialsPromoStatus === "created") {
return;
let essentialsPromoStatus = this.createZenEssentialsPromo(draggedTab?.userContextId);
switch (essentialsPromoStatus) {
case "shown":
case "created":
return;
}
if (!this._fakeEssentialTab) {