forked from p15670423/monkey
UI: Fix credentials url in ConfigurePage
This commit is contained in:
parent
55f95891e1
commit
7c9a95100a
|
@ -117,7 +117,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCredentials = () => {
|
updateCredentials = () => {
|
||||||
this.authFetch(CREDENTIALS_URL)
|
this.authFetch(CONFIGURED_PROPAGATION_CREDENTIALS_URL)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(credentials => {
|
.then(credentials => {
|
||||||
credentials = formatCredentialsForForm(credentials);
|
credentials = formatCredentialsForForm(credentials);
|
||||||
|
@ -278,7 +278,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
let config = JSON.parse(JSON.stringify(this.state.configuration))
|
let config = JSON.parse(JSON.stringify(this.state.configuration))
|
||||||
config = reformatConfig(config, true);
|
config = reformatConfig(config, true);
|
||||||
|
|
||||||
this.authFetch(CREDENTIALS_URL,
|
this.authFetch(CONFIGURED_PROPAGATION_CREDENTIALS_URL,
|
||||||
{
|
{
|
||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
|
|
Loading…
Reference in New Issue