added hotReload saveFile
This commit is contained in:
@@ -23,11 +23,12 @@
|
||||
data: json,
|
||||
expandInitially: true,
|
||||
onSave: json => {
|
||||
console.log(JSON.stringify(tree.getChanges()));
|
||||
fetch('/config', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(json, null, 2)
|
||||
}).then(() => writeEventLog(0, 'Serverconfig', tree.getChanges()) );
|
||||
body: JSON.stringify(tree.getChanges(), null, 2)
|
||||
}).then(() => writeEventLog(0, 'Serverconfig', JSON.stringify(tree.getChanges())) );
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
fetch('/style', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(json, null, 2)
|
||||
body: JSON.stringify(tree.getChanges(), null, 2)
|
||||
}).then(() => writeEventLog(0, 'Stylesheet', JSON.stringify(tree.getChanges())) );
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user