feat: 👔 ToS button on signed out screen 3 dots

Passes "two-click" rule

Closes #10646
This commit is contained in:
ThatOneCalculator 2023-09-20 20:30:17 -07:00
parent 6f0b28859e
commit b7e9ec6341
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -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,
);