mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-07-13 20:21:16 -03:00
fix(ui): also exit bulk mode after enrich-hf-llm-bulk completes
This commit is contained in:
@@ -416,6 +416,7 @@ export class BulkContextMenu extends BaseContextMenu {
|
|||||||
cleanupCallbacks();
|
cleanupCallbacks();
|
||||||
|
|
||||||
if (data.status === 'completed') {
|
if (data.status === 'completed') {
|
||||||
|
if (state.bulkMode) bulkManager.toggleBulkMode();
|
||||||
progressUI.complete(data.summary || 'Enrich complete');
|
progressUI.complete(data.summary || 'Enrich complete');
|
||||||
showToast(
|
showToast(
|
||||||
'toast.agent.enrichComplete',
|
'toast.agent.enrichComplete',
|
||||||
@@ -428,6 +429,7 @@ export class BulkContextMenu extends BaseContextMenu {
|
|||||||
|
|
||||||
const onError = (data) => {
|
const onError = (data) => {
|
||||||
cleanupCallbacks();
|
cleanupCallbacks();
|
||||||
|
if (state.bulkMode) bulkManager.toggleBulkMode();
|
||||||
state.loadingManager.hide();
|
state.loadingManager.hide();
|
||||||
showToast(
|
showToast(
|
||||||
'toast.agent.enrichFailed',
|
'toast.agent.enrichFailed',
|
||||||
@@ -441,6 +443,7 @@ export class BulkContextMenu extends BaseContextMenu {
|
|||||||
await agentManager.executeSkill('enrich_hf_metadata', modelPaths);
|
await agentManager.executeSkill('enrich_hf_metadata', modelPaths);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
cleanupCallbacks();
|
cleanupCallbacks();
|
||||||
|
if (state.bulkMode) bulkManager.toggleBulkMode();
|
||||||
state.loadingManager.hide();
|
state.loadingManager.hide();
|
||||||
showToast(
|
showToast(
|
||||||
'toast.agent.enrichFailed',
|
'toast.agent.enrichFailed',
|
||||||
|
|||||||
Reference in New Issue
Block a user