remove another reduntant notif
This commit is contained in:
@ -1731,7 +1731,6 @@ function propertiesToString(properties) {
|
|||||||
async function fetchServerProperties() {
|
async function fetchServerProperties() {
|
||||||
try {
|
try {
|
||||||
const key = `action-fetch-properties`;
|
const key = `action-fetch-properties`;
|
||||||
const notification = showNotification('Loading server properties...', 'loading', key);
|
|
||||||
const response = await wsRequest('/server-properties', 'GET');
|
const response = await wsRequest('/server-properties', 'GET');
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
updateNotification(notification, `Failed to load server properties: ${response.error}`, 'error', key);
|
updateNotification(notification, `Failed to load server properties: ${response.error}`, 'error', key);
|
||||||
@ -1747,7 +1746,6 @@ async function fetchServerProperties() {
|
|||||||
);
|
);
|
||||||
renderPropertiesFields(displayProperties);
|
renderPropertiesFields(displayProperties);
|
||||||
elements.editPropertiesModal.classList.remove('hidden');
|
elements.editPropertiesModal.classList.remove('hidden');
|
||||||
updateNotification(notification, 'Server properties loaded successfully', 'success', key);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Fetch server properties error:', error);
|
console.error('Fetch server properties error:', error);
|
||||||
showNotification(`Failed to load server properties: ${error.message}`, 'error', 'fetch-properties-error');
|
showNotification(`Failed to load server properties: ${error.message}`, 'error', 'fetch-properties-error');
|
||||||
|
Reference in New Issue
Block a user