remove redundant notif
This commit is contained in:
@ -1707,7 +1707,7 @@ function renderPropertiesList(properties, filter = '') {
|
|||||||
input.id = `prop-${key}`;
|
input.id = `prop-${key}`;
|
||||||
input.name = key;
|
input.name = key;
|
||||||
input.className = 'bg-gray-700 px-4 py-2 rounded text-white w-2/3';
|
input.className = 'bg-gray-700 px-4 py-2 rounded text-white w-2/3';
|
||||||
input.type = 'number';
|
input.type = inputType;
|
||||||
input.value = value;
|
input.value = value;
|
||||||
if (inputType === 'number') {
|
if (inputType === 'number') {
|
||||||
input.min = '0';
|
input.min = '0';
|
||||||
@ -1757,7 +1757,6 @@ async function fetchServerProperties() {
|
|||||||
async function saveServerProperties() {
|
async function saveServerProperties() {
|
||||||
try {
|
try {
|
||||||
const key = `action-save-properties`;
|
const key = `action-save-properties`;
|
||||||
const notification = showNotification('Saving server properties...', 'loading', key);
|
|
||||||
const properties = {};
|
const properties = {};
|
||||||
const inputs = elements.propertiesFields.querySelectorAll('input:not(#propertiesSearch):not([id="customPropertyKey"]):not([id="customPropertyValue"])');
|
const inputs = elements.propertiesFields.querySelectorAll('input:not(#propertiesSearch):not([id="customPropertyKey"]):not([id="customPropertyValue"])');
|
||||||
|
|
||||||
@ -1784,7 +1783,6 @@ async function saveServerProperties() {
|
|||||||
renderPropertiesList(displayProperties, '');
|
renderPropertiesList(displayProperties, '');
|
||||||
}
|
}
|
||||||
elements.editPropertiesModal.classList.add('hidden');
|
elements.editPropertiesModal.classList.add('hidden');
|
||||||
updateNotification(notification, 'Server properties saved successfully', 'success', key);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Save server properties error:', error);
|
console.error('Save server properties error:', error);
|
||||||
showNotification(`Failed to save server properties: ${error.message}`, 'error', 'save-properties-error');
|
showNotification(`Failed to save server properties: ${error.message}`, 'error', 'save-properties-error');
|
||||||
|
Reference in New Issue
Block a user