Implement rename explorations
parent
fc5626d58f
commit
355850fba0
|
@ -194,11 +194,11 @@ export function deleteExplorer(source, explorerURI, push) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function editExplorer(clusterID, explorerID, params) {
|
export function editExplorer(explorerURI, params) {
|
||||||
return (dispatch) => {
|
return (dispatch) => {
|
||||||
AJAX({
|
AJAX({
|
||||||
url: `/api/int/v1/explorers/${explorerID}`,
|
url: explorerURI,
|
||||||
method: 'PUT',
|
method: 'PATCH',
|
||||||
data: JSON.stringify(params),
|
data: JSON.stringify(params),
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
@ -34,7 +34,7 @@ export default function explorers(state = {}, action) {
|
||||||
case 'EDIT_EXPLORER': {
|
case 'EDIT_EXPLORER': {
|
||||||
const {explorer} = action.payload;
|
const {explorer} = action.payload;
|
||||||
const update = {
|
const update = {
|
||||||
[explorer.id]: normalizeExplorer(explorer),
|
[explorer.link.href]: normalizeExplorer(explorer),
|
||||||
};
|
};
|
||||||
|
|
||||||
return u(update, state);
|
return u(update, state);
|
||||||
|
|
Loading…
Reference in New Issue