mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 09:58:38 +00:00
fix: count ignored models from unselected items in upstream update toast
This commit is contained in:
@@ -131,10 +131,10 @@ export const useChannelUpstreamUpdates = ({ t, refresh }) => {
|
|||||||
|
|
||||||
const addedCount = data?.added_models?.length || 0;
|
const addedCount = data?.added_models?.length || 0;
|
||||||
const removedCount = data?.removed_models?.length || 0;
|
const removedCount = data?.removed_models?.length || 0;
|
||||||
const ignoredCount = data?.ignored_models?.length || 0;
|
|
||||||
const totalIgnoredCount = getManualIgnoredModelCountFromSettings(
|
const totalIgnoredCount = getManualIgnoredModelCountFromSettings(
|
||||||
data?.settings,
|
data?.settings,
|
||||||
);
|
);
|
||||||
|
const ignoredCount = normalizeModelList(ignoreModels).length;
|
||||||
showSuccess(
|
showSuccess(
|
||||||
t(
|
t(
|
||||||
'已处理上游模型更新:加入 {{added}} 个,删除 {{removed}} 个,本次忽略 {{ignored}} 个,当前已忽略模型 {{totalIgnored}} 个',
|
'已处理上游模型更新:加入 {{added}} 个,删除 {{removed}} 个,本次忽略 {{ignored}} 个,当前已忽略模型 {{totalIgnored}} 个',
|
||||||
|
|||||||
Reference in New Issue
Block a user