mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
tabs inserted in jsx
This commit is contained in:
parent
1dba9196e7
commit
6b9bf03941
@ -28,11 +28,9 @@ class ContractListActions {
|
|||||||
return Q.Promise((resolve, reject) => {
|
return Q.Promise((resolve, reject) => {
|
||||||
OwnershipFetcher.makeContractPublic(contract)
|
OwnershipFetcher.makeContractPublic(contract)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log('Here is the result... ');
|
|
||||||
resolve(res);
|
resolve(res);
|
||||||
})
|
})
|
||||||
.catch((err)=> {
|
.catch((err)=> {
|
||||||
console.log('Here we have an error');
|
|
||||||
console.logGlobal(err);
|
console.logGlobal(err);
|
||||||
reject(err);
|
reject(err);
|
||||||
});
|
});
|
||||||
|
@ -35,8 +35,8 @@ let ContractSettings = React.createClass({
|
|||||||
console.log(contract);
|
console.log(contract);
|
||||||
ContractListActions.makeContractPublic(contract)
|
ContractListActions.makeContractPublic(contract)
|
||||||
.then(( ) => ContractListActions.fetchContractList())
|
.then(( ) => ContractListActions.fetchContractList())
|
||||||
.catch((error)=>{console.log('Error ', error);
|
.catch((error)=>{
|
||||||
let notification = new GlobalNotificationModel('Service is unavailable', 'danger', 10000);
|
let notification = new GlobalNotificationModel(error, 'danger', 10000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -45,7 +45,7 @@ let ContractSettings = React.createClass({
|
|||||||
ContractListActions.removeContract(contract)
|
ContractListActions.removeContract(contract)
|
||||||
.then(( ) => ContractListActions.fetchContractList())
|
.then(( ) => ContractListActions.fetchContractList())
|
||||||
.catch((error) => {console.log('Error', error);
|
.catch((error) => {console.log('Error', error);
|
||||||
let notification = new GlobalNotificationModel('Service is unavailable', 'danger', 10000);
|
let notification = new GlobalNotificationModel(error, 'danger', 10000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -24,7 +24,7 @@ let OwnershipFetcher = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
makeContractPublic(contractObj){
|
makeContractPublic(contractObj){
|
||||||
return requests.put('ownership_contract', { body: contractObj, contract_id: contractObj.id });
|
return requests.put('ownership_csontract', { body: contractObj, contract_id: contractObj.id });
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteContract(contractObj){
|
deleteContract(contractObj){
|
||||||
|
Loading…
Reference in New Issue
Block a user