feat: Update showToast function to support options object and improve notification handling

fix: Adjust modal max-height for better responsiveness
This commit is contained in:
Will Miao
2025-08-22 08:18:43 +08:00
parent 52fa88b04c
commit 331ad8f644
3 changed files with 56 additions and 14 deletions

View File

@@ -171,10 +171,20 @@ app.registerExtension({
if (foundPaths.length === 1) {
// Single match found - success
showToast(`Updated path for ${fileName}: ${firstPath}`, 'info');
showToast({
severity: 'info',
summary: 'LoRA Manager Path Correction',
detail: `Updated path for ${fileName}: ${firstPath}`,
life: 5000
});
} else {
// Multiple matches found - warning
showToast(`Multiple paths found for ${fileName}, using: ${firstPath}`, 'warning');
showToast({
severity: 'warn',
summary: 'LoRA Manager Path Correction',
detail: `Multiple paths found for ${fileName}, using: ${firstPath}`,
life: 5000
});
}
// Mark node as modified