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() {
|
||||
OwnershipFetcher.fetchContractList()
|
||||
fetchContractList(isActive) {
|
||||
OwnershipFetcher.fetchContractList(isActive)
|
||||
.then((contracts) => {
|
||||
this.actions.updateContractList(contracts.results);
|
||||
})
|
||||
|
@ -35,7 +35,7 @@ let ContractAgreementForm = React.createClass({
|
||||
|
||||
componentDidMount() {
|
||||
ContractListStore.listen(this.onChange);
|
||||
ContractListActions.fetchContractList();
|
||||
ContractListActions.fetchContractList({is_active: 'True'});
|
||||
},
|
||||
|
||||
componentWillUnmount() {
|
||||
|
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user