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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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: {