mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat: add checkpoint hash filtering and navigation
- Add checkpoint hash parameter parsing to backend routes - Implement checkpoint hash filtering in frontend API client - Add click navigation from recipe modal to checkpoints page - Update checkpoint items to use pointer cursor for better UX Checkpoint items in recipe modal are now clickable and will navigate to the checkpoints page with appropriate hash filtering applied. This improves user workflow when wanting to view checkpoint details from recipes.
This commit is contained in:
@@ -877,6 +877,21 @@ export class BaseModelApiClient {
|
||||
console.error('Error parsing lora hashes from session storage:', error);
|
||||
}
|
||||
}
|
||||
} else if (this.modelType === 'checkpoints') {
|
||||
const filterCheckpointHash = getSessionItem('recipe_to_checkpoint_filterHash');
|
||||
const filterCheckpointHashes = getSessionItem('recipe_to_checkpoint_filterHashes');
|
||||
|
||||
if (filterCheckpointHash) {
|
||||
params.append('checkpoint_hash', filterCheckpointHash);
|
||||
} else if (filterCheckpointHashes) {
|
||||
try {
|
||||
if (Array.isArray(filterCheckpointHashes) && filterCheckpointHashes.length > 0) {
|
||||
params.append('checkpoint_hashes', filterCheckpointHashes.join(','));
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error parsing checkpoint hashes from session storage:', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user