From 2656bdac14703fed6b151d09bc84436de0641c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 15 Sep 2015 17:18:38 +0200 Subject: [PATCH] correct query parameters for contract list request --- js/components/ascribe_forms/form_contract_agreement.js | 2 +- js/components/ascribe_forms/form_create_contract.js | 2 +- js/components/ascribe_settings/contract_settings.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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 b275df03..d3d14966 100644 --- a/js/components/ascribe_forms/form_create_contract.js +++ b/js/components/ascribe_forms/form_create_contract.js @@ -50,7 +50,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 b79f77f1..0db6133e 100644 --- a/js/components/ascribe_settings/contract_settings.js +++ b/js/components/ascribe_settings/contract_settings.js @@ -26,7 +26,7 @@ let ContractSettings = React.createClass({ componentDidMount() { ContractListStore.listen(this.onChange); - ContractListActions.fetchContractList({is_active: true}); + ContractListActions.fetchContractList(true); }, componentWillUnmount() { @@ -42,7 +42,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); @@ -58,7 +58,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); })