misc: move 'hide read posts' to user settings

This commit is contained in:
Xyphyn committed 2023-08-11 14:44:00 -07:00
1 parent 61a483e9ef
commit e8f7501c62
3 files changed
+13 -5

No files matched your search

@@ -23,7 +23,7 @@
</div>
{:else}
{#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
in:fly={{
y: -8,
-2
View File
@@ -21,7 +21,6 @@ interface Settings {
hidePosts: {
deleted: boolean
removed: boolean
read: boolean
}
fullWidthLayout: boolean
expandSidebar: boolean
@@ -53,7 +52,6 @@ const defaultSettings: Settings = {
hidePosts: {
deleted: true,
removed: false,
read: false,
},
fullWidthLayout: false,
expandSidebar: true,
+12 -2
View File
@@ -9,6 +9,7 @@
import { getInboxNotifications } from '$lib/auth.js'
import Checkbox from '$lib/components/input/Checkbox.svelte'
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
import Link from '$lib/components/input/Link.svelte'
let data = {
loading: false,
@@ -48,7 +49,17 @@
</Setting>
<Setting>
<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">
<Checkbox bind:checked={$userSettings.hidePosts.deleted}>
Deleted
@@ -56,7 +67,6 @@
<Checkbox bind:checked={$userSettings.hidePosts.removed}>
Removed
</Checkbox>
<Checkbox bind:checked={$userSettings.hidePosts.read}>Read</Checkbox>
</div>
</Setting>
<Setting>