feat(web): upload json config (#8953)

* Button added, config is uploaded

* Refactored to pass "npm run lint" (also verified other PR checklist Web checks)

* Auto-save on config upload

* Static input element

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Alexandre Truppel
2024-04-24 21:43:43 +02:00
committed by GitHub
parent a78260296c
commit 0dbe44cb78
2 changed files with 27 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
await (detail.default ? resetToDefault(detail.configKeys) : reset(detail.configKeys));
};
const handleSave = async (update: Partial<SystemConfigDto>) => {
export const handleSave = async (update: Partial<SystemConfigDto>) => {
try {
const newConfig = await updateConfig({
systemConfigDto: {