From 5b1cd1161838348122bfd7fb5269e371950842b9 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Thu, 21 Sep 2023 15:22:26 -0700 Subject: [PATCH] fix: :children_crossing: don't open server info on ticker on note sub --- packages/client/src/components/MkInstanceTicker.vue | 10 ---------- packages/client/src/components/MkNote.vue | 2 +- packages/client/src/components/MkNoteHeader.vue | 10 ++++++++++ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/client/src/components/MkInstanceTicker.vue b/packages/client/src/components/MkInstanceTicker.vue index f5bedee58..fa036a616 100644 --- a/packages/client/src/components/MkInstanceTicker.vue +++ b/packages/client/src/components/MkInstanceTicker.vue @@ -4,7 +4,6 @@ v-tooltip="capitalize(instance.softwareName)" class="hpaizdrt" :style="bg" - @click.stop="openServerInfo" > {{ instance.name }} @@ -17,8 +16,6 @@ import { ref } from "vue"; import { instanceName } from "@/config"; import { instance as Instance } from "@/instance"; import { getProxiedImageUrlNullable } from "@/scripts/media-proxy"; -import { defaultStore } from "@/store"; -import { pageWindow } from "@/os"; const props = defineProps<{ instance?: { @@ -87,13 +84,6 @@ function getInstanceIcon(instance): string { "/client-assets/dummy.png" ); } - -function openServerInfo() { - if (!defaultStore.state.openServerInfo) return; - const instanceInfoUrl = - props.host == null ? "/about" : `/instance-info/${props.host}`; - pageWindow(instanceInfoUrl); -}