mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
web/Omnibox: show community label if default url isn't official
This commit is contained in:
parent
b0fba0dadb
commit
b56c6b70a2
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import env from "$lib/env";
|
import env, { officialApiURL } from "$lib/env";
|
||||||
|
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
import { goto } from "$app/navigation";
|
import { goto } from "$app/navigation";
|
||||||
@ -137,7 +137,7 @@
|
|||||||
if you want to remove the community instance label,
|
if you want to remove the community instance label,
|
||||||
refer to the license first https://github.com/imputnet/cobalt/tree/main/web#license
|
refer to the license first https://github.com/imputnet/cobalt/tree/main/web#license
|
||||||
-->
|
-->
|
||||||
{#if env.DEFAULT_API || (!$page.url.host.endsWith(".cobalt.tools") && $page.url.host !== "cobalt.tools")}
|
{#if env.DEFAULT_API !== officialApiURL}
|
||||||
<div id="instance-label">
|
<div id="instance-label">
|
||||||
{$t("save.label.community_instance")}
|
{$t("save.label.community_instance")}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user