fix: Fix archive setting

fixes #2259

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr
2025-01-25 09:15:45 +01:00
parent dd73c404ba
commit 8a3582eccf
4 changed files with 1052 additions and 1728 deletions

2773
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@
"dependencies": {
"@nextcloud/auth": "^2.1.0",
"@nextcloud/axios": "^2.3.0",
"@nextcloud/dialogs": "4.x",
"@nextcloud/dialogs": "6.x",
"@nextcloud/event-bus": "^3.1.0",
"@nextcloud/initial-state": "^2.0.0",
"@nextcloud/l10n": "^2.1.0",

View File

@ -13,7 +13,6 @@ import { mutations } from './store/index.js'
import { showError, showMessage } from '@nextcloud/dialogs'
import { generateFilePath } from '@nextcloud/router'
import { getRequestToken } from '@nextcloud/auth'
import '@nextcloud/dialogs/dist/index.css'
// eslint-disable-next-line camelcase
__webpack_nonce__ = btoa(getRequestToken())

View File

@ -148,13 +148,11 @@ export default {
addToHomeScreen: null,
archivePathPicker: getFilePickerBuilder(this.t('bookmarks', 'Archive path'))
.allowDirectories(true)
.setModal(true)
.setType(1)// CHOOSE
.setMultiSelect(false)
.build(),
backupPathPicker: getFilePickerBuilder(this.t('bookmarks', 'Backup path'))
.allowDirectories(true)
.setModal(true)
.setType(1)// CHOOSE
.setMultiSelect(false)
.build(),
@ -177,7 +175,7 @@ export default {
return this.$store.state.settings['privacy.enableScraping'] === 'true'
},
archiveEnabled() {
return this.$store.state.settings['archive.enabled'] && this.$store.state.settings['privacy.enableScraping'] === 'true'
return this.$store.state.settings['archive.enabled'] === 'true' && this.$store.state.settings['privacy.enableScraping'] === 'true'
},
archivePath() {
return this.$store.state.settings['archive.filePath']