mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Merge remote-tracking branch 'remotes/origin/AD-456-ikonotv-branded-page-for-registra' into AD-943-add-custom-additional-fields
This commit is contained in:
commit
4c2cc61592
@ -35,7 +35,7 @@ let ContractAgreementForm = React.createClass({
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
ContractListStore.listen(this.onChange);
|
ContractListStore.listen(this.onChange);
|
||||||
ContractListActions.fetchContractList({is_active: true});
|
ContractListActions.fetchContractList(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
@ -50,7 +50,7 @@ let CreateContractForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleCreateSuccess(response) {
|
handleCreateSuccess(response) {
|
||||||
ContractListActions.fetchContractList({is_active: true});
|
ContractListActions.fetchContractList(true);
|
||||||
let notification = new GlobalNotificationModel(getLangText('Contract %s successfully created', response.name), 'success', 5000);
|
let notification = new GlobalNotificationModel(getLangText('Contract %s successfully created', response.name), 'success', 5000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
this.refs.form.reset();
|
this.refs.form.reset();
|
||||||
|
@ -26,7 +26,7 @@ let ContractSettings = React.createClass({
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
ContractListStore.listen(this.onChange);
|
ContractListStore.listen(this.onChange);
|
||||||
ContractListActions.fetchContractList({is_active: true});
|
ContractListActions.fetchContractList(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
@ -42,7 +42,7 @@ let ContractSettings = React.createClass({
|
|||||||
contract.is_public = true;
|
contract.is_public = true;
|
||||||
ContractListActions.changeContract(contract)
|
ContractListActions.changeContract(contract)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
ContractListActions.fetchContractList({is_active: true});
|
ContractListActions.fetchContractList(true);
|
||||||
let notification = getLangText('Contract %s is now public', contract.name);
|
let notification = getLangText('Contract %s is now public', contract.name);
|
||||||
notification = new GlobalNotificationModel(notification, 'success', 4000);
|
notification = new GlobalNotificationModel(notification, 'success', 4000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
@ -58,7 +58,7 @@ let ContractSettings = React.createClass({
|
|||||||
return () => {
|
return () => {
|
||||||
ContractListActions.removeContract(contract.id)
|
ContractListActions.removeContract(contract.id)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
ContractListActions.fetchContractList({is_active: true});
|
ContractListActions.fetchContractList(true);
|
||||||
let notification = new GlobalNotificationModel(response.notification, 'success', 4000);
|
let notification = new GlobalNotificationModel(response.notification, 'success', 4000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user