[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
No known key found for this signature in database
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<{ const props = defineProps<{
query: string; query: string;
hideFilters?: boolean;
}>(); }>();
const emit = defineEmits<{ const emit = defineEmits<{
@ -235,7 +236,7 @@ function onInputKeydown(evt: KeyboardEvent) {
<i class="ph-magnifying-glass ph-bold"></i> <i class="ph-magnifying-glass ph-bold"></i>
</div> </div>
</template> </template>
<template #suffix> <template v-if="!hideFilters" #suffix>
<button <button
v-tooltip.noDelay="i18n.ts.filter" v-tooltip.noDelay="i18n.ts.filter"
class="_buttonIcon" class="_buttonIcon"

View file

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