feat(context-menu): enhance bulk workflow options with append and replace actions

This commit is contained in:
Will Miao
2025-09-05 10:55:38 +08:00
parent affb507b37
commit 7475de366b
4 changed files with 23 additions and 11 deletions

View File

@@ -228,7 +228,7 @@ export class BulkManager {
await copyToClipboard(loraSyntaxes.join(', '), `Copied ${loraSyntaxes.length} LoRA syntaxes to clipboard`);
}
async sendAllModelsToWorkflow() {
async sendAllModelsToWorkflow(replaceMode = false) {
if (state.currentPageType !== MODEL_TYPES.LORA) {
showToast('toast.loras.sendOnlyForLoras', {}, 'warning');
return;
@@ -265,7 +265,7 @@ export class BulkManager {
return;
}
await sendLoraToWorkflow(loraSyntaxes.join(', '), false, 'lora');
await sendLoraToWorkflow(loraSyntaxes.join(', '), replaceMode, 'lora');
}
showBulkDeleteModal() {