1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 08:37:59 +02:00

list only is_active

This commit is contained in:
diminator 2015-09-08 11:01:43 +02:00
parent 22aa0139ae
commit 06ce603c44
3 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,8 @@ class ContractListActions {
);
}
fetchContractList() {
OwnershipFetcher.fetchContractList()
fetchContractList(isActive) {
OwnershipFetcher.fetchContractList(isActive)
.then((contracts) => {
this.actions.updateContractList(contracts.results);
})

View File

@ -35,7 +35,7 @@ let ContractAgreementForm = React.createClass({
componentDidMount() {
ContractListStore.listen(this.onChange);
ContractListActions.fetchContractList();
ContractListActions.fetchContractList({is_active: 'True'});
},
componentWillUnmount() {

View File

@ -15,8 +15,8 @@ let OwnershipFetcher = {
/**
* Fetch the contracts of the logged-in user from the API.
*/
fetchContractList(){
return requests.get(ApiUrls.ownership_contract_list);
fetchContractList(isActive){
return requests.get(ApiUrls.ownership_contract_list, isActive);
},
fetchLoanPieceRequestList(){