mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat: Add and hide loading indicators for tag operations. Fixes #755
This commit is contained in:
@@ -321,6 +321,7 @@ export class BaseModelApiClient {
|
||||
|
||||
async addTags(filePath, data) {
|
||||
try {
|
||||
state.loadingManager.showSimpleLoading('Adding tags...');
|
||||
const response = await fetch(this.apiConfig.endpoints.addTags, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
@@ -344,6 +345,8 @@ export class BaseModelApiClient {
|
||||
} catch (error) {
|
||||
console.error('Error adding tags:', error);
|
||||
throw error;
|
||||
} finally {
|
||||
state.loadingManager.hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user