diff --git a/js/components/ascribe_forms/form_contract_agreement.js b/js/components/ascribe_forms/form_contract_agreement.js index 887b99db..fb6793e6 100644 --- a/js/components/ascribe_forms/form_contract_agreement.js +++ b/js/components/ascribe_forms/form_contract_agreement.js @@ -35,7 +35,7 @@ let ContractAgreementForm = React.createClass({ componentDidMount() { ContractListStore.listen(this.onChange); - ContractListActions.fetchContractList({is_active: true}); + ContractListActions.fetchContractList(true); }, componentWillUnmount() { diff --git a/js/components/ascribe_forms/form_create_contract.js b/js/components/ascribe_forms/form_create_contract.js index 701ab7fb..26790269 100644 --- a/js/components/ascribe_forms/form_create_contract.js +++ b/js/components/ascribe_forms/form_create_contract.js @@ -45,7 +45,7 @@ let CreateContractForm = React.createClass({ }, handleCreateSuccess(response) { - ContractListActions.fetchContractList({is_active: true}); + ContractListActions.fetchContractList(true); let notification = new GlobalNotificationModel(getLangText('Contract %s successfully created', response.name), 'success', 5000); GlobalNotificationActions.appendGlobalNotification(notification); this.refs.form.reset(); diff --git a/js/components/ascribe_settings/contract_settings.js b/js/components/ascribe_settings/contract_settings.js index 8a6700f1..00b37b78 100644 --- a/js/components/ascribe_settings/contract_settings.js +++ b/js/components/ascribe_settings/contract_settings.js @@ -28,7 +28,7 @@ let ContractSettings = React.createClass({ componentDidMount() { ContractListStore.listen(this.onChange); - ContractListActions.fetchContractList({is_active: true}); + ContractListActions.fetchContractList(true); }, componentWillUnmount() { @@ -44,7 +44,7 @@ let ContractSettings = React.createClass({ contract.is_public = true; ContractListActions.changeContract(contract) .then(() => { - ContractListActions.fetchContractList({is_active: true}); + ContractListActions.fetchContractList(true); let notification = getLangText('Contract %s is now public', contract.name); notification = new GlobalNotificationModel(notification, 'success', 4000); GlobalNotificationActions.appendGlobalNotification(notification); @@ -60,7 +60,7 @@ let ContractSettings = React.createClass({ return () => { ContractListActions.removeContract(contract.id) .then((response) => { - ContractListActions.fetchContractList({is_active: true}); + ContractListActions.fetchContractList(true); let notification = new GlobalNotificationModel(response.notification, 'success', 4000); GlobalNotificationActions.appendGlobalNotification(notification); })