2021-02-25 17:56:16 +09:00
|
|
|
<template>
|
|
|
|
<Popover
|
|
|
|
trigger="click"
|
2022-08-02 05:20:27 +09:00
|
|
|
class="QuickFilterSettings"
|
2021-02-25 17:56:16 +09:00
|
|
|
:bound-to="{ x: 'container' }"
|
2022-11-22 05:17:33 +09:00
|
|
|
:trigger-attrs="{ title: $t('timeline.quick_filter_settings') }"
|
2021-02-25 17:56:16 +09:00
|
|
|
>
|
2022-07-31 18:35:48 +09:00
|
|
|
<template #content>
|
2023-01-22 05:30:23 +09:00
|
|
|
<div
|
|
|
|
class="dropdown-menu"
|
|
|
|
role="menu"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
v-if="loggedIn"
|
|
|
|
role="group"
|
|
|
|
>
|
2021-04-08 04:42:34 +09:00
|
|
|
<button
|
2022-08-02 05:20:27 +09:00
|
|
|
v-if="!conversation"
|
2021-04-08 04:42:34 +09:00
|
|
|
class="button-default dropdown-item"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-checked="replyVisibilityAll"
|
|
|
|
role="menuitemradio"
|
2021-04-08 04:42:34 +09:00
|
|
|
@click="replyVisibilityAll = true"
|
|
|
|
>
|
|
|
|
<span
|
2022-04-21 01:44:31 +09:00
|
|
|
class="menu-checkbox -radio"
|
|
|
|
:class="{ 'menu-checkbox-checked': replyVisibilityAll }"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-hidden="true"
|
2021-04-08 04:42:34 +09:00
|
|
|
/>{{ $t('settings.reply_visibility_all') }}
|
|
|
|
</button>
|
|
|
|
<button
|
2022-08-02 05:20:27 +09:00
|
|
|
v-if="!conversation"
|
2021-04-08 04:42:34 +09:00
|
|
|
class="button-default dropdown-item"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-checked="replyVisibilityFollowing"
|
|
|
|
role="menuitemradio"
|
2021-04-08 04:42:34 +09:00
|
|
|
@click="replyVisibilityFollowing = true"
|
|
|
|
>
|
|
|
|
<span
|
2022-04-21 01:44:31 +09:00
|
|
|
class="menu-checkbox -radio"
|
|
|
|
:class="{ 'menu-checkbox-checked': replyVisibilityFollowing }"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-hidden="true"
|
2021-04-08 04:42:34 +09:00
|
|
|
/>{{ $t('settings.reply_visibility_following_short') }}
|
|
|
|
</button>
|
|
|
|
<button
|
2022-08-02 05:20:27 +09:00
|
|
|
v-if="!conversation"
|
2021-04-08 04:42:34 +09:00
|
|
|
class="button-default dropdown-item"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-checked="replyVisibilitySelf"
|
|
|
|
role="menuitemradio"
|
2021-04-08 04:42:34 +09:00
|
|
|
@click="replyVisibilitySelf = true"
|
|
|
|
>
|
|
|
|
<span
|
2022-04-21 01:44:31 +09:00
|
|
|
class="menu-checkbox -radio"
|
|
|
|
:class="{ 'menu-checkbox-checked': replyVisibilitySelf }"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-hidden="true"
|
2021-04-08 04:42:34 +09:00
|
|
|
/>{{ $t('settings.reply_visibility_self_short') }}
|
|
|
|
</button>
|
|
|
|
<div
|
2022-08-02 05:20:27 +09:00
|
|
|
v-if="!conversation"
|
2021-04-08 04:42:34 +09:00
|
|
|
role="separator"
|
|
|
|
class="dropdown-divider"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-03-01 05:07:20 +09:00
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
2023-01-22 05:30:23 +09:00
|
|
|
role="menuitemcheckbox"
|
|
|
|
:aria-checked="muteBotStatuses"
|
2022-03-01 05:07:20 +09:00
|
|
|
@click="muteBotStatuses = !muteBotStatuses"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
|
|
|
:class="{ 'menu-checkbox-checked': muteBotStatuses }"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-hidden="true"
|
2022-03-01 05:07:20 +09:00
|
|
|
/>{{ $t('settings.mute_bot_posts') }}
|
|
|
|
</button>
|
2021-02-25 18:01:11 +09:00
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
2023-01-22 05:30:23 +09:00
|
|
|
role="menuitemcheckbox"
|
|
|
|
:aria-checked="hideMedia"
|
2021-04-08 04:42:34 +09:00
|
|
|
@click="hideMedia = !hideMedia"
|
2021-02-25 18:01:11 +09:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
2021-04-08 04:42:34 +09:00
|
|
|
:class="{ 'menu-checkbox-checked': hideMedia }"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-hidden="true"
|
2021-04-08 04:42:34 +09:00
|
|
|
/>{{ $t('settings.hide_media_previews') }}
|
2021-02-25 18:01:11 +09:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
2023-01-22 05:30:23 +09:00
|
|
|
role="menuitemcheckbox"
|
|
|
|
:aria-checked="hideMutedPosts"
|
2021-04-08 04:42:34 +09:00
|
|
|
@click="hideMutedPosts = !hideMutedPosts"
|
2021-02-25 18:01:11 +09:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
2021-04-08 04:42:34 +09:00
|
|
|
:class="{ 'menu-checkbox-checked': hideMutedPosts }"
|
2023-01-22 05:30:23 +09:00
|
|
|
:aria-hidden="true"
|
2021-04-08 04:42:34 +09:00
|
|
|
/>{{ $t('settings.hide_all_muted_posts') }}
|
2021-02-25 18:01:11 +09:00
|
|
|
</button>
|
|
|
|
<button
|
2021-04-08 04:42:34 +09:00
|
|
|
class="button-default dropdown-item dropdown-item-icon"
|
2023-01-22 05:30:23 +09:00
|
|
|
role="menuitem"
|
2021-04-08 04:42:34 +09:00
|
|
|
@click="openTab('filtering')"
|
2021-02-25 18:01:11 +09:00
|
|
|
>
|
2022-08-02 05:20:27 +09:00
|
|
|
<FAIcon icon="font" />{{ $t('settings.word_filter_and_more') }}
|
2021-02-25 18:01:11 +09:00
|
|
|
</button>
|
|
|
|
</div>
|
2021-04-08 04:42:34 +09:00
|
|
|
</template>
|
2022-07-31 18:35:48 +09:00
|
|
|
<template #trigger>
|
2022-11-08 03:22:40 +09:00
|
|
|
<FAIcon icon="filter" />
|
2021-04-08 04:42:34 +09:00
|
|
|
</template>
|
2021-02-25 17:56:16 +09:00
|
|
|
</Popover>
|
|
|
|
</template>
|
|
|
|
|
2022-08-02 05:20:27 +09:00
|
|
|
<script src="./quick_filter_settings.js"></script>
|