2021-02-25 08:56:16 +00:00
|
|
|
<template>
|
|
|
|
<Popover
|
|
|
|
trigger="click"
|
|
|
|
class="TimelineQuickSettings"
|
|
|
|
:bound-to="{ x: 'container' }"
|
|
|
|
>
|
2021-04-07 19:42:34 +00:00
|
|
|
<template v-slot:content>
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
<div v-if="loggedIn">
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
|
|
|
@click="replyVisibilityAll = true"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
|
|
|
:class="{ 'menu-checkbox-radio': replyVisibilityAll }"
|
|
|
|
/>{{ $t('settings.reply_visibility_all') }}
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
|
|
|
@click="replyVisibilityFollowing = true"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
|
|
|
:class="{ 'menu-checkbox-radio': replyVisibilityFollowing }"
|
|
|
|
/>{{ $t('settings.reply_visibility_following_short') }}
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
|
|
|
@click="replyVisibilitySelf = true"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
|
|
|
:class="{ 'menu-checkbox-radio': replyVisibilitySelf }"
|
|
|
|
/>{{ $t('settings.reply_visibility_self_short') }}
|
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
role="separator"
|
|
|
|
class="dropdown-divider"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-02-25 09:01:11 +00:00
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
2021-04-07 19:42:34 +00:00
|
|
|
@click="hideMedia = !hideMedia"
|
2021-02-25 09:01:11 +00:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
2021-04-07 19:42:34 +00:00
|
|
|
:class="{ 'menu-checkbox-checked': hideMedia }"
|
|
|
|
/>{{ $t('settings.hide_media_previews') }}
|
2021-02-25 09:01:11 +00:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item"
|
2021-04-07 19:42:34 +00:00
|
|
|
@click="hideMutedPosts = !hideMutedPosts"
|
2021-02-25 09:01:11 +00:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="menu-checkbox"
|
2021-04-07 19:42:34 +00:00
|
|
|
:class="{ 'menu-checkbox-checked': hideMutedPosts }"
|
|
|
|
/>{{ $t('settings.hide_all_muted_posts') }}
|
2021-02-25 09:01:11 +00:00
|
|
|
</button>
|
|
|
|
<button
|
2021-04-07 19:42:34 +00:00
|
|
|
class="button-default dropdown-item dropdown-item-icon"
|
|
|
|
@click="openTab('filtering')"
|
2021-02-25 09:01:11 +00:00
|
|
|
>
|
2021-04-07 19:42:34 +00:00
|
|
|
<FAIcon icon="font" />{{ $t('settings.word_filter') }}
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
class="button-default dropdown-item dropdown-item-icon"
|
|
|
|
@click="openTab('general')"
|
|
|
|
>
|
|
|
|
<FAIcon icon="wrench" />{{ $t('settings.more_settings') }}
|
2021-02-25 09:01:11 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2021-04-07 19:42:34 +00:00
|
|
|
</template>
|
|
|
|
<template v-slot:trigger>
|
|
|
|
<button class="button-unstyled">
|
|
|
|
<FAIcon icon="filter" />
|
2021-02-25 08:56:16 +00:00
|
|
|
</button>
|
2021-04-07 19:42:34 +00:00
|
|
|
</template>
|
2021-02-25 08:56:16 +00:00
|
|
|
</Popover>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./timeline_quick_settings.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
.TimelineQuickSettings {
|
|
|
|
align-self: stretch;
|
|
|
|
|
|
|
|
> button {
|
|
|
|
font-size: 1.2em;
|
|
|
|
padding-left: 0.7em;
|
|
|
|
padding-right: 0.2em;
|
|
|
|
line-height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-item {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|