From f8cf7802cb6945527b651719edf1cc65d017890b Mon Sep 17 00:00:00 2001 From: MCHost Date: Thu, 26 Jun 2025 02:53:11 -0400 Subject: [PATCH] remove redundant notif --- public/js/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index be1d0b4..6dfc79f 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1707,7 +1707,7 @@ function renderPropertiesList(properties, filter = '') { input.id = `prop-${key}`; input.name = key; input.className = 'bg-gray-700 px-4 py-2 rounded text-white w-2/3'; - input.type = 'number'; + input.type = inputType; input.value = value; if (inputType === 'number') { input.min = '0'; @@ -1757,7 +1757,6 @@ async function fetchServerProperties() { async function saveServerProperties() { try { const key = `action-save-properties`; - const notification = showNotification('Saving server properties...', 'loading', key); const properties = {}; const inputs = elements.propertiesFields.querySelectorAll('input:not(#propertiesSearch):not([id="customPropertyKey"]):not([id="customPropertyValue"])'); @@ -1784,7 +1783,6 @@ async function saveServerProperties() { renderPropertiesList(displayProperties, ''); } elements.editPropertiesModal.classList.add('hidden'); - updateNotification(notification, 'Server properties saved successfully', 'success', key); } catch (error) { console.error('Save server properties error:', error); showNotification(`Failed to save server properties: ${error.message}`, 'error', 'save-properties-error');