mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(server, web): accepted codecs (#6460)
* chore: rebase * chore: open api --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
96b7885583
commit
8aef92affc
14 changed files with 181 additions and 10 deletions
|
|
@ -9,6 +9,7 @@
|
|||
import { handleError } from '$lib/utils/handle-error';
|
||||
import type { SettingsEventType } from './admin-settings';
|
||||
import { createEventDispatcher, onMount } from 'svelte';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
export let config: SystemConfigDto;
|
||||
|
||||
|
|
@ -25,16 +26,17 @@
|
|||
}
|
||||
};
|
||||
|
||||
const handleSave = async (config: Partial<SystemConfigDto>) => {
|
||||
const handleSave = async (update: Partial<SystemConfigDto>) => {
|
||||
try {
|
||||
const result = await api.systemConfigApi.updateConfig({
|
||||
const { data: newConfig } = await api.systemConfigApi.updateConfig({
|
||||
systemConfigDto: {
|
||||
...savedConfig,
|
||||
...config,
|
||||
...update,
|
||||
},
|
||||
});
|
||||
|
||||
savedConfig = { ...result.data };
|
||||
config = cloneDeep(newConfig);
|
||||
savedConfig = cloneDeep(newConfig);
|
||||
notificationController.show({ message: 'Settings saved', type: NotificationType.Info });
|
||||
|
||||
dispatch('save');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue