diff --git a/react/src/actions/actionCreators.js b/react/src/actions/actionCreators.js
index dd1f06d..6bbc6f5 100644
--- a/react/src/actions/actionCreators.js
+++ b/react/src/actions/actionCreators.js
@@ -316,7 +316,7 @@ export function dismissToasterMessage() {
}
}
-export function addCoin(coin, mode, syncOnly) {
+export function addCoin(coin, mode, syncOnly, port) {
console.log('coin, mode, syncOnly', coin + ' ' + mode + ' ' + syncOnly);
/*startIguanaInstance(mode, coin)
.then(function(json) {
@@ -361,8 +361,14 @@ export function addCoin(coin, mode, syncOnly) {
});
}
} else {
- return dispatch => {
- dispatch(iguanaAddCoin(coin, mode, _acData));
+ if (port) {
+ return dispatch => {
+ dispatch(iguanaAddCoin(coin, mode, _acData, port));
+ }
+ } else {
+ return dispatch => {
+ dispatch(iguanaAddCoin(coin, mode, _acData));
+ }
}
}
}
@@ -2498,6 +2504,23 @@ export function getSyncOnlyForks() {
}
}
+export function stopIguanaFork(pmid) {
+ return dispatch => {
+ return fetch('http://127.0.0.1:' + Config.agamaPort + '/shepherd/forks/stop?pmid=' + pmid, {
+ method: 'GET',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ })
+ .catch(function(error) {
+ console.log(error);
+ dispatch(triggerToaster(true, 'stopIguanaFork', 'Error', 'error'));
+ })
+ .then(response => response.json())
+ .then(json => dispatch(triggerToaster(true, 'Iguana instance is stopped', translate('TOASTR.SERVICE_NOTIFICATION'), 'success')))
+ }
+}
+
/*function Shepherd_SendPendValue() {
Shepherd_SysInfo().then(function(result){
var ram_data = formatBytes(result.totalmem_bytes)
diff --git a/react/src/components/addcoin/addcoinOptionsCrypto.js b/react/src/components/addcoin/addcoinOptionsCrypto.js
index f87c8f4..7438132 100644
--- a/react/src/components/addcoin/addcoinOptionsCrypto.js
+++ b/react/src/components/addcoin/addcoinOptionsCrypto.js
@@ -3,13 +3,13 @@ import { translate } from '../../translate/translate';
class AddCoinOptionsCrypto extends React.Component {
render() {
- //
- //
- //
return (