This commit is contained in:
Will Miao
2025-02-18 21:10:42 +08:00
parent dac07308c3
commit e19300d5f4
3 changed files with 10 additions and 6 deletions

View File

@@ -290,6 +290,7 @@ export async function refreshLoras() {
export async function refreshSingleLoraMetadata(filePath) {
try {
state.loadingManager.showSimpleLoading('Refreshing metadata...');
const response = await fetch('/api/fetch-civitai', {
method: 'POST',
headers: {
@@ -314,5 +315,8 @@ export async function refreshSingleLoraMetadata(filePath) {
} catch (error) {
console.error('Error refreshing metadata:', error);
showToast(error.message, 'error');
} finally {
state.loadingManager.hide();
state.loadingManager.restoreProgressBar();
}
}