feat: 👔 ToS button on signed out screen 3 dots
Passes "two-click" rule Closes #10646
This commit is contained in:
parent
6f0b28859e
commit
b7e9ec6341
1 changed files with 10 additions and 2 deletions
|
@ -22,8 +22,8 @@
|
|||
<div class="main">
|
||||
<img
|
||||
:src="
|
||||
$instance.iconUrl ||
|
||||
$instance.faviconUrl ||
|
||||
instance.iconUrl ||
|
||||
instance.faviconUrl ||
|
||||
'/favicon.ico'
|
||||
"
|
||||
alt=""
|
||||
|
@ -110,6 +110,7 @@ import MkButton from "@/components/MkButton.vue";
|
|||
import MkFeaturedPhotos from "@/components/MkFeaturedPhotos.vue";
|
||||
import { instanceName } from "@/config";
|
||||
import * as os from "@/os";
|
||||
import { instance } from "@/instance";
|
||||
import { i18n } from "@/i18n";
|
||||
|
||||
const meta = ref();
|
||||
|
@ -183,6 +184,13 @@ function showMenu(ev) {
|
|||
os.pageWindow("/about-firefish");
|
||||
},
|
||||
},
|
||||
instance.tosUrl ? {
|
||||
text: i18n.ts.tos,
|
||||
icon: "ph-scroll ph-bold ph-lg",
|
||||
action: () => {
|
||||
window.open(instance.tosUrl, "_blank");
|
||||
},
|
||||
} : null,
|
||||
],
|
||||
ev.currentTarget ?? ev.target,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue