From 9a16adda6f4e63f57eb100c4f87f720a69c3731c Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 18 Jan 2025 10:43:06 +0100 Subject: [PATCH] fix(archival): Properly interpret setting value see #2238 Signed-off-by: Marcel Klehr --- src/components/BookmarkContent.vue | 2 +- src/components/Navigation.vue | 2 +- src/components/Settings.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/BookmarkContent.vue b/src/components/BookmarkContent.vue index 75154aca9..4aa46ff55 100644 --- a/src/components/BookmarkContent.vue +++ b/src/components/BookmarkContent.vue @@ -38,7 +38,7 @@ export default { return this.bookmark.url.startsWith('http') }, scrapingEnabled() { - return this.$store.state.settings['privacy.enableScraping'] + return this.$store.state.settings['privacy.enableScraping'] === 'true' }, archiveEnabled() { return this.$store.state.settings['archive.enabled'] diff --git a/src/components/Navigation.vue b/src/components/Navigation.vue index 5088e7964..b8626d65f 100644 --- a/src/components/Navigation.vue +++ b/src/components/Navigation.vue @@ -193,7 +193,7 @@ export default { return this.$store.state.settings['privacy.enableScraping'] === 'true' }, archiveEnabled() { - return this.$store.state.settings['archive.enabled'] === 'true' + return this.$store.state.settings['archive.enabled'] && this.$store.state.settings['privacy.enableScraping'] === 'true' }, }, diff --git a/src/components/Settings.vue b/src/components/Settings.vue index 5c350d8dc..7030f82b0 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -177,7 +177,7 @@ export default { return this.$store.state.settings['privacy.enableScraping'] === 'true' }, archiveEnabled() { - return this.$store.state.settings['archive.enabled'] === 'true' + return this.$store.state.settings['archive.enabled'] && this.$store.state.settings['privacy.enableScraping'] === 'true' }, archivePath() { return this.$store.state.settings['archive.filePath']