Fixing bug where configs could be overwritten with empty configs on first refresh. Fixing bug where configs were displayed as JSON in admin settings.

This commit is contained in:
Roland 2026-03-22 12:56:37 -06:00
parent 83ad253d6f
commit 755b133fa4
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
7 changed files with 91 additions and 5 deletions

View file

@ -425,6 +425,11 @@ export async function getConfig(fileName) {
return (await response.json())['config'];
}
export async function getConfigText(fileName) {
const response = await apiGet(`${API_URI}/config?file_name=${fileName}`);
return (await response.json())['config_text'];
}
export async function getConfigBackups(fileName) {
const response = await apiGet(`${API_URI}/config/backups?file_name=${fileName}`);
if (response.ok) {