mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
list only is_active
This commit is contained in:
parent
22aa0139ae
commit
06ce603c44
@ -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);
|
||||||
})
|
})
|
||||||
|
@ -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() {
|
||||||
|
@ -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(){
|
||||||
|
Loading…
Reference in New Issue
Block a user