Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

improved UX

daniel31x1355f61cebc323
diff --git a/apps/web/pages/collections/[id].tsx b/apps/web/pages/collections/[id].tsx
index 460b3f8a..c15266b1 100644
--- a/apps/web/pages/collections/[id].tsx
+++ b/apps/web/pages/collections/[id].tsx
@@ -165,8 +165,24 @@ const Page: NextPageWithLayout = () => {
>
<DropdownMenuItem
onClick={() => {
+ let blocked = false;
+
for (const link of links) {
- if (link.url) window.open(link.url, "_blank");
+ if (!link.url) continue;
+
+ const openedWindow = window.open(link.url, "_blank");
+
+ if (openedWindow) {
+ (openedWindow as { blur: () => void }).blur();
+ } else {
+ blocked = true;
+ }
+ }
+
+ window.focus();
+
+ if (blocked) {
+ alert(t("popups_blocked_open_all_links"));
}
}}
>
diff --git a/apps/web/public/locales/en/common.json b/apps/web/public/locales/en/common.json
index 703a0adc..fb47d638 100644
--- a/apps/web/public/locales/en/common.json
+++ b/apps/web/public/locales/en/common.json
@@ -446,6 +446,7 @@
"lemmy": "Lemmy",
"people_recommendation": "Recommendation (Friend, Family, etc.)",
"open_all_links": "Open all Links",
+ "popups_blocked_open_all_links": "Your browser blocked some of your links from being opened. Allow pop-ups for this site to open them all together.",
"ai_settings": "AI Settings",
"generate_tags_for_existing_links": "Generate tags for existing Links",
"ai_tagging_method": "AI Tagging Method:",