remove dup notif
This commit is contained in:
@@ -2030,7 +2030,6 @@ function updateModListPagination() {
|
|||||||
async function updateMods() {
|
async function updateMods() {
|
||||||
try {
|
try {
|
||||||
const key = `action-update-mods`;
|
const key = `action-update-mods`;
|
||||||
const notification = showNotification('Updating mods...', 'loading', key);
|
|
||||||
const response = await wsRequest('/update-mods', 'POST');
|
const response = await wsRequest('/update-mods', 'POST');
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
elements.updateModsOutput.textContent = `Error: ${response.error}`;
|
elements.updateModsOutput.textContent = `Error: ${response.error}`;
|
||||||
@@ -2038,7 +2037,6 @@ function updateModListPagination() {
|
|||||||
} else {
|
} else {
|
||||||
const output = response.output || 'No output from mod update.';
|
const output = response.output || 'No output from mod update.';
|
||||||
elements.updateModsOutput.textContent = output;
|
elements.updateModsOutput.textContent = output;
|
||||||
showNotification('Mods updated successfully', 'success', key);
|
|
||||||
}
|
}
|
||||||
elements.updateModsModal.classList.remove('hidden');
|
elements.updateModsModal.classList.remove('hidden');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Reference in New Issue
Block a user