fix: address code review comments in RefreshMetadataDialog

Agent-Logs-Url: https://github.com/rommapp/romm/sessions/fec651c3-d741-4c7d-a79f-bd469343602e

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-20 18:00:08 +00:00
committed by GitHub
parent b9d784d3b4
commit 042ddf16e1

View File

@@ -25,7 +25,7 @@ const scanningStore = storeScanning();
const configStore = storeConfig();
const { config } = storeToRefs(configStore);
const calculateHashes = computed(() => !config.value.SKIP_HASH_CALCULATION || false);
const calculateHashes = computed(() => !config.value.SKIP_HASH_CALCULATION);
const metadataOptions = computed(() => {
return heartbeat.getMetadataOptionsByPriority().map((option) => {
@@ -58,10 +58,13 @@ const launchboxRemoteEnabled = useLocalStorage(
true,
);
const filteredMetadataSources = metadataOptions.value.filter(
(m) => storedMetadataSources.value.includes(m.value) && !m.disabled,
);
const metadataSources = ref<MetadataOption[]>(
metadataOptions.value.filter(
(m) => storedMetadataSources.value.includes(m.value) && !m.disabled,
) || heartbeat.getEnabledMetadataOptions(),
filteredMetadataSources.length > 0
? filteredMetadataSources
: heartbeat.getEnabledMetadataOptions(),
);
const isLaunchboxSelected = computed(() =>