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">
|
<div class="main">
|
||||||
<img
|
<img
|
||||||
:src="
|
:src="
|
||||||
$instance.iconUrl ||
|
instance.iconUrl ||
|
||||||
$instance.faviconUrl ||
|
instance.faviconUrl ||
|
||||||
'/favicon.ico'
|
'/favicon.ico'
|
||||||
"
|
"
|
||||||
alt=""
|
alt=""
|
||||||
|
@ -110,6 +110,7 @@ import MkButton from "@/components/MkButton.vue";
|
||||||
import MkFeaturedPhotos from "@/components/MkFeaturedPhotos.vue";
|
import MkFeaturedPhotos from "@/components/MkFeaturedPhotos.vue";
|
||||||
import { instanceName } from "@/config";
|
import { instanceName } from "@/config";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
|
import { instance } from "@/instance";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
|
|
||||||
const meta = ref();
|
const meta = ref();
|
||||||
|
@ -183,6 +184,13 @@ function showMenu(ev) {
|
||||||
os.pageWindow("/about-firefish");
|
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,
|
ev.currentTarget ?? ev.target,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue