From 65966e13518fe81725b22f25bc15d31adcc84497 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 18 Dec 2023 02:12:24 -0800
Subject: fix(wrapped): activity history default on

---
 src/lib/Tools/Wrapped.svelte | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

(limited to 'src/lib/Tools/Wrapped.svelte')

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index 2bb4b6cf..6f3d5f7f 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -39,7 +39,7 @@
 	let highestRatedCount = 5;
 	let mounted = false;
 	let generated = false;
-	let activityHistory = true;
+	let disableActivityHistory = true;
 
 	$: {
 		if (browser && mounted) {
@@ -52,7 +52,7 @@
 			$page.url.searchParams.set('width', width.toString());
 			$page.url.searchParams.set('lightMode', lightMode.toString());
 			$page.url.searchParams.set('highestRatedCount', highestRatedCount.toString());
-			$page.url.searchParams.set('activityHistory', activityHistory.toString());
+			$page.url.searchParams.set('disableActivityHistory', disableActivityHistory.toString());
 
 			history.replaceState(null, '', `?${$page.url.searchParams.toString()}`);
 		}
@@ -120,7 +120,7 @@
 			'width',
 			'forceDark',
 			'highestRatedCount',
-			'activityHistory'
+			'disableActivityHistory'
 		]);
 
 		if (browser) {
@@ -133,7 +133,7 @@
 			width = parseInt($page.url.searchParams.get('width') || '980', 10);
 			lightMode = $page.url.searchParams.get('lightMode') === 'true';
 			highestRatedCount = parseInt($page.url.searchParams.get('highestRatedCount') || '5', 10);
-			activityHistory = $page.url.searchParams.get('activityHistory') === 'true';
+			disableActivityHistory = $page.url.searchParams.get('disableActivityHistory') === 'true';
 		}
 
 		if (user !== undefined) {
@@ -410,7 +410,7 @@
 					</div>
 				</div>
 			</div>
-			{#if activityHistory}
+			{#if !disableActivityHistory}
 				<div class="categories-grid" style="padding-top: 0;">
 					<div class="category-grid pure-category">
 						<ActivityHistoryGrid {user} />
@@ -436,10 +436,11 @@
 			<summary>Options</summary>
 			<div id="options">
 				<input type="checkbox" bind:checked={watermark} /> Enable watermark<br />
-				<input type="checkbox" bind:checked={activityHistory} /> Enable activity history<br />
 				<input type="checkbox" bind:checked={transparency} /> Enable background transparency<br />
 				<input type="checkbox" bind:checked={lightMode} />
 				Enable light mode<br />
+				<input type="checkbox" bind:checked={disableActivityHistory} /> Disable activity history<br
+				/>
 				<input type="checkbox" bind:checked={includeMusic} /> Include music<br />
 				<input type="checkbox" bind:checked={includeRepeats} /> Include rewatches & rereads<br />
 				<input type="checkbox" bind:checked={includeSpecials} /> Include specials and OVAs<br />
-- 
cgit v1.2.3

