mirror of
https://github.com/immich-app/immich.git
synced 2025-11-28 07:49:52 +09:00
feat(web): ws - on_config_update (#4378)
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
import SettingInputField, { SettingInputFieldType } from '../setting-input-field.svelte';
|
||||
import SettingSwitch from '../setting-switch.svelte';
|
||||
import SettingSelect from '../setting-select.svelte';
|
||||
import { loadConfig } from '$lib/stores/server-config.store';
|
||||
|
||||
export let config: SystemConfigDto; // this is the config that is being edited
|
||||
export let disabled = false;
|
||||
@@ -48,9 +47,6 @@
|
||||
savedConfig = cloneDeep(updated);
|
||||
|
||||
notificationController.show({ message: 'Settings saved', type: NotificationType.Info });
|
||||
// TODO: Use websockets to reload feature params instead once websocket for client is merged
|
||||
// Reload feature params in the background
|
||||
loadConfig();
|
||||
} catch (error) {
|
||||
handleError(error, 'Unable to save settings');
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
import SettingButtonsRow from '../setting-buttons-row.svelte';
|
||||
import SettingSwitch from '../setting-switch.svelte';
|
||||
import SettingInputField, { SettingInputFieldType } from '../setting-input-field.svelte';
|
||||
import { loadConfig } from '$lib/stores/server-config.store';
|
||||
|
||||
export let trashConfig: SystemConfigTrashDto; // this is the config that is being edited
|
||||
export let disabled = false;
|
||||
@@ -36,9 +35,6 @@
|
||||
savedConfig = { ...updated.trash };
|
||||
|
||||
notificationController.show({ message: 'Settings saved', type: NotificationType.Info });
|
||||
// TODO: Use websockets to reload feature params instead once websocket for client is merged
|
||||
// Reload feature params in the background
|
||||
loadConfig();
|
||||
} catch (error) {
|
||||
handleError(error, 'Unable to save settings');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user