mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
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:
committed by
GitHub
parent
b9d784d3b4
commit
042ddf16e1
@@ -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(() =>
|
||||
|
||||
Reference in New Issue
Block a user