1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +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() { fetchContractList(isActive) {
OwnershipFetcher.fetchContractList() OwnershipFetcher.fetchContractList(isActive)
.then((contracts) => { .then((contracts) => {
this.actions.updateContractList(contracts.results); this.actions.updateContractList(contracts.results);
}) })

View File

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

View File

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