mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
fix(settings): refresh filesystem folders when opening folder mappings
The folder-mapping table lists FS_PLATFORMS from the heartbeat snapshot taken at app init, so a folder created after that only showed up after a full page reload. Refetch the heartbeat when the section mounts. Fixes #4035
This commit is contained in:
@@ -306,6 +306,10 @@ const initialLoading = ref(false);
|
||||
onMounted(async () => {
|
||||
initialLoading.value = true;
|
||||
loading.value = true;
|
||||
// FS_PLATFORMS is snapshotted into the heartbeat at app init, so folders
|
||||
// created since then would only appear after a full page reload. Refresh
|
||||
// it in the background whenever the section mounts.
|
||||
heartbeat.fetchHeartbeat().catch(() => {});
|
||||
try {
|
||||
const { data } = await platformApi.getSupportedPlatforms();
|
||||
supportedPlatforms.value = data || [];
|
||||
|
||||
Reference in New Issue
Block a user