Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
remove function that are also in ViewAttributesActions.js
Browse files Browse the repository at this point in the history
Don't use the legacy view attributes API #1357
  • Loading branch information
metas-ts committed Dec 8, 2017
1 parent 9fd97b0 commit 385c20a
Showing 1 changed file with 1 addition and 58 deletions.
59 changes: 1 addition & 58 deletions src/actions/GenericActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ export function initLayout(
);
}

export function getViewAttributesLayout(windowId, viewId, rowId) {
return axios.get(
config.API_URL +
'/documentView'+
'/' + windowId +
'/' + viewId +
'/' + rowId +
'/attributes/layout'
);
}

export function getData(
entity, docType, docId, tabId, rowId, subentity, subentityId, isAdvanced,
orderBy, viewId
Expand All @@ -49,35 +38,7 @@ export function getData(
);
}

export function getViewAttributeDropdown(windowId, viewId, rowId, attribute) {
return axios.get(
config.API_URL +
'/documentView'+
'/' + windowId +
'/' + viewId +
'/' + rowId +
'/attributes/attribute/' + attribute +
'/dropdown'
);
}
/**
*
* @param {*} windowId
* @param {*} viewId
* @param {*} rowId
*/
export function getViewAttributes (
windowId, viewId, rowId
) {
return axios.get(
config.API_URL +
'/documentView'+
'/' + windowId +
'/' + viewId +
'/' + rowId +
'/attributes'
);
}


function getPathRequestPayload(property, value) {
let payload = [];
Expand All @@ -98,24 +59,6 @@ function getPathRequestPayload(property, value) {
return payload;
}

export function patchViewAttributes(
windowId,
viewId,
rowId,
property,
value
) {
const payload = getPathRequestPayload(property, value);

return axios.patch(
config.API_URL +
'/documentView'+
'/' + windowId +
'/' + viewId +
'/' + rowId +
'/attributes', payload);
}

export function createInstance(entity, docType, docId, tabId, subentity) {
return axios.post(
config.API_URL +
Expand Down

0 comments on commit 385c20a

Please sign in to comment.