Compare commits

...
5 Commits
2 changed files with 14 additions and 5 deletions

No files matched your search

+8
View File
@@ -1,5 +1,13 @@
# Changelog # Changelog
## [3.3.3](https://github.com/Masutayunikon/FanKarr/compare/v3.3.2...v3.3.3) (2026-04-07)
### Bug Fixes
* MediaManagementView.vue api call is now in mounted ([8c5b650](https://github.com/Masutayunikon/FanKarr/commit/8c5b650ca6eeac75f33e8c5423f6d4fd24f9871b))
* path ([58ae88a](https://github.com/Masutayunikon/FanKarr/commit/58ae88a01c063318407134cd7351572220acd892))
## [3.3.2](https://github.com/Masutayunikon/FanKarr/compare/v3.3.1...v3.3.2) (2026-04-07) ## [3.3.2](https://github.com/Masutayunikon/FanKarr/compare/v3.3.1...v3.3.2) (2026-04-07)
+6 -5
View File
@@ -129,16 +129,14 @@ const form = ref({
autoImport : true, autoImport : true,
}) })
const { data: systemInfo } = await fetch('/api/system/info')
const picker = ref<{ open: boolean; field: 'completePath' | 'mediaPath'; currentPath: string }>({ const picker = ref<{ open: boolean; field: 'completePath' | 'mediaPath'; currentPath: string }>({
open: false, open: false,
field: 'completePath', field: 'completePath',
currentPath: systemInfo.value?.defaultPath ?? '/', currentPath: '/',
}) })
function openPicker(field: 'completePath' | 'mediaPath') { function openPicker(field: 'completePath' | 'mediaPath') {
picker.value = { open: true, field, currentPath: form.value[field] || '/' } picker.value = { open: true, field, currentPath: form.value[field] || picker.value.currentPath || '/' }
} }
function onPickerSelect(path: string) { function onPickerSelect(path: string) {
@@ -147,12 +145,15 @@ function onPickerSelect(path: string) {
} }
onMounted(async () => { onMounted(async () => {
const [settingsRes, systemRes] = await Promise.all([ const [settingsRes, systemRes, infoRes] = await Promise.all([
fetch('/api/settings', { credentials: 'include' }), fetch('/api/settings', { credentials: 'include' }),
fetch('/api/system', { credentials: 'include' }), fetch('/api/system', { credentials: 'include' }),
fetch('/api/system/info', { credentials: 'include' }),
]) ])
if (settingsRes.ok) Object.assign(form.value, await settingsRes.json()) if (settingsRes.ok) Object.assign(form.value, await settingsRes.json())
if (systemRes.ok) isDocker.value = (await systemRes.json()).isDocker if (systemRes.ok) isDocker.value = (await systemRes.json()).isDocker
if (infoRes.ok) picker.value.currentPath = (await infoRes.json()).defaultPath ?? '/'
}) })
async function save() { async function save() {