fix: 아이콘 업로드 완료 토스트, 번역 삭제 시 아이콘 UI 동기화
This commit is contained in:
parent
15709c4fb8
commit
929e522860
1 changed files with 10 additions and 0 deletions
|
|
@ -409,6 +409,15 @@ export default function Admin({ isMobile = false }) {
|
|||
|
||||
setIconUploading(false);
|
||||
fetchIconMods();
|
||||
|
||||
// 완료 토스트 표시
|
||||
const successCount = pendingIconFiles.filter(f => f.status === 'success').length;
|
||||
const errorCount = pendingIconFiles.filter(f => f.status === 'error').length;
|
||||
if (successCount > 0) {
|
||||
setToast(`아이콘 업로드 완료: ${successCount}개 성공${errorCount > 0 ? `, ${errorCount}개 실패` : ''}`);
|
||||
} else if (errorCount > 0) {
|
||||
setToast(`아이콘 업로드 실패: ${errorCount}개`, true);
|
||||
}
|
||||
};
|
||||
|
||||
// 아이콘 모드 삭제
|
||||
|
|
@ -540,6 +549,7 @@ export default function Admin({ isMobile = false }) {
|
|||
if (result.success) {
|
||||
setToast(`${modId} 번역 삭제됨`);
|
||||
fetchModTranslations();
|
||||
fetchIconMods(); // 아이콘 목록도 새로고침
|
||||
} else {
|
||||
setToast(result.error || '삭제 실패', true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue