misc: move 'hide read posts' to user settings
This commit is contained in:
1 parent
61a483e9ef
commit
e8f7501c62
3 files changed
+13
-5
No files matched your search
@@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
{#each posts as post, index (post.post.id)}
|
{#each posts as post, index (post.post.id)}
|
||||||
{#if !($userSettings.hidePosts.deleted && post.post.deleted) && !($userSettings.hidePosts.removed && post.post.removed) && !($userSettings.hidePosts.read && post.read)}
|
{#if !($userSettings.hidePosts.deleted && post.post.deleted) && !($userSettings.hidePosts.removed && post.post.removed)}
|
||||||
<div
|
<div
|
||||||
in:fly={{
|
in:fly={{
|
||||||
y: -8,
|
y: -8,
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ interface Settings {
|
|||||||
hidePosts: {
|
hidePosts: {
|
||||||
deleted: boolean
|
deleted: boolean
|
||||||
removed: boolean
|
removed: boolean
|
||||||
read: boolean
|
|
||||||
}
|
}
|
||||||
fullWidthLayout: boolean
|
fullWidthLayout: boolean
|
||||||
expandSidebar: boolean
|
expandSidebar: boolean
|
||||||
@@ -53,7 +52,6 @@ const defaultSettings: Settings = {
|
|||||||
hidePosts: {
|
hidePosts: {
|
||||||
deleted: true,
|
deleted: true,
|
||||||
removed: false,
|
removed: false,
|
||||||
read: false,
|
|
||||||
},
|
},
|
||||||
fullWidthLayout: false,
|
fullWidthLayout: false,
|
||||||
expandSidebar: true,
|
expandSidebar: true,
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
import { getInboxNotifications } from '$lib/auth.js'
|
import { getInboxNotifications } from '$lib/auth.js'
|
||||||
import Checkbox from '$lib/components/input/Checkbox.svelte'
|
import Checkbox from '$lib/components/input/Checkbox.svelte'
|
||||||
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
|
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
|
||||||
|
import Link from '$lib/components/input/Link.svelte'
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -48,7 +49,17 @@
|
|||||||
</Setting>
|
</Setting>
|
||||||
<Setting>
|
<Setting>
|
||||||
<span slot="title">Hide Posts</span>
|
<span slot="title">Hide Posts</span>
|
||||||
<span slot="description">Hide certain types of posts.</span>
|
<span slot="description">
|
||||||
|
<p>Hide certain types of posts.</p>
|
||||||
|
<p>
|
||||||
|
Looking to hide read posts? That was moved to your <Link
|
||||||
|
href="/profile/settings"
|
||||||
|
highlight
|
||||||
|
>
|
||||||
|
profile settings.
|
||||||
|
</Link>
|
||||||
|
</p>
|
||||||
|
</span>
|
||||||
<div class="flex flex-row items-center gap-4 flex-wrap">
|
<div class="flex flex-row items-center gap-4 flex-wrap">
|
||||||
<Checkbox bind:checked={$userSettings.hidePosts.deleted}>
|
<Checkbox bind:checked={$userSettings.hidePosts.deleted}>
|
||||||
Deleted
|
Deleted
|
||||||
@@ -56,7 +67,6 @@
|
|||||||
<Checkbox bind:checked={$userSettings.hidePosts.removed}>
|
<Checkbox bind:checked={$userSettings.hidePosts.removed}>
|
||||||
Removed
|
Removed
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
<Checkbox bind:checked={$userSettings.hidePosts.read}>Read</Checkbox>
|
|
||||||
</div>
|
</div>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting>
|
<Setting>
|
||||||
|
|||||||
Reference in new issue
Block a user