From ddc18557b5de23fee2e0723b305fd8d8de62bd17 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 3 Sep 2023 18:25:03 -0700
Subject: feat(settings): move cache minutes to settings

---
 src/routes/settings/+page.svelte | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'src/routes/settings/+page.svelte')

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index 6dc4202f..39c67391 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -2,8 +2,6 @@
 	/* eslint svelte/no-at-html-tags: "off" */
 
 	import { chapterDatabase } from '$lib/chapterDatabase';
-	import cacheMangaMinutes from '../../stores/cacheMangaMinutes';
-	import cacheMinutes from '../../stores/cacheMinutes';
 	import manga from '../../stores/manga';
 	import anime from '../../stores/anime';
 	import settings from '../../stores/settings';
@@ -124,12 +122,19 @@
 	<br />
 
 	Re-cache <b>ALL</b> media keys every
-	<input type="number" bind:value={$cacheMinutes} min="1" max="60" placeholder="30" /> minutes
+	<input type="number" bind:value={$settings.cacheMinutes} min="1" max="60" placeholder="30" />
+	minutes
 
 	<p />
 
 	<span>Re-cache <b>ALL</b> manga chapter counts every</span>
-	<input type="number" bind:value={$cacheMangaMinutes} min="1" max="1440" placeholder="60" />
+	<input
+		type="number"
+		bind:value={$settings.cacheMangaMinutes}
+		min="1"
+		max="1440"
+		placeholder="60"
+	/>
 	minutes
 	<br />
 	<small style="opacity: 50%;"
-- 
cgit v1.2.3

