mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 12:56:24 -05:00
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:
parent
83ad253d6f
commit
755b133fa4
7 changed files with 91 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue