mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Backup configs can be restored in the UI. User can choose between Merge or Overwrite, the UI displays a comparison. Configs are compared when user opens the restore modal, configs which won't cause changes are marked.
This commit is contained in:
parent
1cf402821c
commit
da6e62ee45
15 changed files with 1870 additions and 17 deletions
|
|
@ -1893,7 +1893,10 @@
|
|||
}
|
||||
const checkUpgradeComplete = async () => {
|
||||
try {
|
||||
const resp = await fetch('/api/ready', {
|
||||
// WARNING: This must be a relative URL (no leading slash) so it resolves to
|
||||
// /controller/api/ready behind Caddy, or /api/ready when accessed directly.
|
||||
// An absolute '/api/ready' would be routed to Sanic by Caddy, not the Controller.
|
||||
const resp = await fetch('api/ready', {
|
||||
method: 'GET',
|
||||
headers: {'Accept': 'application/json'},
|
||||
signal: AbortSignal.timeout(5000)
|
||||
|
|
@ -1936,7 +1939,10 @@
|
|||
// Poll controller's readiness endpoint (same-origin, avoids CORS/cert issues).
|
||||
const checkMainApp = async () => {
|
||||
try {
|
||||
const resp = await fetch('/api/ready', {
|
||||
// WARNING: This must be a relative URL (no leading slash) so it resolves to
|
||||
// /controller/api/ready behind Caddy, or /api/ready when accessed directly.
|
||||
// An absolute '/api/ready' would be routed to Sanic by Caddy, not the Controller.
|
||||
const resp = await fetch('api/ready', {
|
||||
method: 'GET',
|
||||
headers: {'Accept': 'application/json'},
|
||||
signal: AbortSignal.timeout(5000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue