refactor(settings): rename update_flag_strategy to version_grouping with migration

This commit is contained in:
Will Miao
2026-06-22 16:59:32 +08:00
parent 94f43426d7
commit afb6ca1b8d
19 changed files with 60 additions and 59 deletions

View File

@@ -275,8 +275,8 @@ function handleViewLocalVersionsFromCard(card, modelType) {
const modelId = card.dataset.modelId;
const modelName = card.dataset.name;
if (!modelId) return;
// Respect update_flag_strategy: only filter by base model when the strategy says so
const strategy = state.global?.settings?.update_flag_strategy;
// Respect version_grouping: only filter by base model when the strategy says so
const strategy = state.global?.settings?.version_grouping;
const shouldFilterByBase = strategy === 'same_base';
const baseModel = shouldFilterByBase && card.dataset.base_model !== 'Unknown'
? card.dataset.base_model