UI: Clear configured credentials on Island reset
This commit is contained in:
parent
ef25dd936b
commit
1e9d193a6d
|
@ -107,6 +107,10 @@ const IslandResetModal = (props: Props) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return auth.authFetch('/api/clear-simulation-data', {method: 'POST'})
|
return auth.authFetch('/api/clear-simulation-data', {method: 'POST'})
|
||||||
}})
|
}})
|
||||||
|
.then(res => {
|
||||||
|
if (res.status === 200) {
|
||||||
|
return auth.authFetch('/api/propagation-credentials/configured-credentials', {method: 'DELETE'})
|
||||||
|
}})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return auth.authFetch('/api/island-mode', {method: 'POST', body: '{"mode": "unset"}'})
|
return auth.authFetch('/api/island-mode', {method: 'POST', body: '{"mode": "unset"}'})
|
||||||
|
|
Loading…
Reference in New Issue