feat: implement bulk operations for model management including delete, move, and refresh functionalities

This commit is contained in:
Will Miao
2025-08-05 11:23:20 +08:00
parent 65d5f50088
commit 7abfc49e08
7 changed files with 255 additions and 215 deletions

View File

@@ -1,6 +1,7 @@
import { showToast, updateFolderTags } from '../utils/uiHelpers.js';
import { state, getCurrentPageState } from '../state/index.js';
import { modalManager } from './ModalManager.js';
import { bulkManager } from './BulkManager.js';
import { getStorageItem } from '../utils/storageHelpers.js';
import { getModelApiClient } from '../api/modelApiFactory.js';
@@ -209,7 +210,7 @@ class MoveManager {
// If we were in bulk mode, exit it after successful move
if (this.bulkFilePaths && state.bulkMode) {
toggleBulkMode();
bulkManager.toggleBulkMode();
}
} catch (error) {