Skip to content

Commit

Permalink
fix(frontend): Formslot to FormSection
Browse files Browse the repository at this point in the history
  • Loading branch information
1673beta committed May 8, 2024
1 parent 690fbb6 commit 40924c4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/frontend/src/pages/search.note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkFolder>
<template #label>{{ i18n.ts.options }}</template>

<FormSlot>
<FormSection>
<template #label>{{ i18n.ts.specifyUser }}</template>
<template v-if="user" #suffix>@{{ user.username }}</template>

<div style="text-align: center;" class="_gaps_m">
<MkButton v-if="user == null" primary rounded inline @click="selectUser">{{ i18n.ts.selectUser }}</MkButton>
<MkButton v-else danger rounded inline @click="user = null">{{ i18n.ts.remove }}</MkButton>
</div>
</FormSlot>
</FormSection>
<MkSwitch v-model="advancedSearch" :disabled="!isAdvancedSearchAvailable">
{{ i18n.ts._advancedSearch._searchOption.toggleAdvancedSearch }}
</MkSwitch>
<MkFolder v-if="advancedSearch" class="_gaps">
<FormSlot>
<FormSection>
<template #label>{{ i18n.ts.fileAttachedOnly }}</template>

<div style="text-align: center;" class="_gaps_m">
Expand All @@ -40,8 +40,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<option value="no-file">{{ i18n.ts._advancedSearch._fileOption.noFile }}</option>
</MkRadios>
</div>
</FormSlot>
<FormSlot>
</FormSection>
<FormSection>
<template #label>{{ i18n.ts._advancedSearch._searchOption.toggleDate }}</template>
<template #caption>{{ i18n.ts._advancedSearch._description.toggleDate }}</template>

Expand All @@ -55,8 +55,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #prefix><i class="ti ti-calender"></i></template>
</MkInput>
</FormSplit>
</FormSlot>
<FormSlot>
</FormSection>
<FormSection>
<template #label>{{ i18n.ts.other }}</template>
<template #caption>{{ i18n.ts._advancedSearch._description.other }}</template>
<template #prefix></template>
Expand All @@ -65,7 +65,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSwitch v-model="excludeReply">{{ i18n.ts._advancedSearch._searchOption.toggleReply }}</MkSwitch>
<MkSwitch v-model="excludeNsfw">{{ i18n.ts._advancedSearch._searchOption.toggleNsfw }}</MkSwitch>
</div>
</FormSlot>
</FormSection>
</MkFolder>
</MkFolder>
<div>
Expand Down Expand Up @@ -97,8 +97,8 @@ import { $i } from '@/account';
import { formatDateTimeString } from '@/scripts/format-time-string';
import { addTime } from '@/scripts/time';
import MkSearchInput from '@/components/MkSearchInput.vue';
import FormSlot from '@/components/form/slot.vue';
import FormSplit from '@/components/form/split.vue';
import FormSection from '@/components/form/section.vue';

const router = useRouter();

Expand Down

0 comments on commit 40924c4

Please sign in to comment.