[client] Don't show FTS filters in user search and guest view

This commit is contained in:
Laura Hausmann 2023-11-19 01:07:57 +01:00
parent dcee692caf
commit a703638199
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import * as Acct from "iceshrimp-js/built/acct";
const props = defineProps<{
query: string;
hideFilters?: boolean;
}>();
const emit = defineEmits<{
@ -235,7 +236,7 @@ function onInputKeydown(evt: KeyboardEvent) {
<i class="ph-magnifying-glass ph-bold"></i>
</div>
</template>
<template #suffix>
<template v-if="!hideFilters" #suffix>
<button
v-tooltip.noDelay="i18n.ts.filter"
class="_buttonIcon"

View file

@ -8,7 +8,7 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="800">
<MkSearch :query="query" @query="search"/>
<MkSearch :query="query" :hideFilters="!$i || tab === 'users'" @query="search"/>
<swiper
:round-lengths="true"
:touch-angle="25"