Skip to content

Commit

Permalink
fix(archival): Properly interpret setting value
Browse files Browse the repository at this point in the history
see #2238

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 18, 2025
1 parent bb92e78 commit 9a16add
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/BookmarkContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
},

Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 9a16add

Please sign in to comment.