new feature: open all links
This commit is contained in:
parent
78ecf3ddb5
commit
6842da4283
|
@ -143,6 +143,21 @@ export default function Index() {
|
|||
<i className="bi-three-dots text-xl" title="More"></i>
|
||||
</div>
|
||||
<ul className="dropdown-content z-[30] menu shadow bg-base-200 border border-neutral-content rounded-box mt-1">
|
||||
<li>
|
||||
<div
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
onClick={() => {
|
||||
(document?.activeElement as HTMLElement)?.blur();
|
||||
for (const link of links) {
|
||||
if (link.url) window.open(link.url, "_blank");
|
||||
}
|
||||
}}
|
||||
className="whitespace-nowrap"
|
||||
>
|
||||
{t("open_all_links")}
|
||||
</div>
|
||||
</li>
|
||||
{permissions === true && (
|
||||
<li>
|
||||
<div
|
||||
|
|
|
@ -427,5 +427,6 @@
|
|||
"search_engine": "Search Engine (Google, Bing, etc.)",
|
||||
"reddit": "Reddit",
|
||||
"lemmy": "Lemmy",
|
||||
"people_recommendation": "Recommendation (Friend, Family, etc.)"
|
||||
"people_recommendation": "Recommendation (Friend, Family, etc.)",
|
||||
"open_all_links": "Open all Links"
|
||||
}
|
Ŝarĝante…
Reference in New Issue