Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 8 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"grunt-shell": "^1.1.2",
"grunt-text-replace": "^0.4.0",
"lodash": "^4.17.5",
"node-sass": "^4.11.0"
"node-sass": "^4.12.0"
},
"scripts": {
"deploy-branch": "grunt deploy-branch",
Expand Down
2 changes: 1 addition & 1 deletion src/accountstatus/accountstatus.es6
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AccountStatus {
return Promise.all([
liveapi.send({ get_account_status: 1 }),
liveapi.cached.send({ website_status: 1 }),
liveapi.send({ 'get_settings': 1 }),
liveapi.cached.send({ 'get_settings': 1 }),
liveapi.cached.send({ get_financial_assessment: 1 }),
liveapi.send({ mt5_login_list: 1 })
]);
Expand Down
2 changes: 1 addition & 1 deletion src/cashier/deposit.es6
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function init_state(root) {
});

/* get the residence field and its states */
var residence_promise = liveapi.send({ get_settings: 1 })
var residence_promise = liveapi.cached.send({ get_settings: 1 })
.then(function(data) {
state.user.residence = data.get_settings.country_code;
state.user.residence_name = data.get_settings.country;
Expand Down
3 changes: 1 addition & 2 deletions src/cashier/withdraw.es6
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ class Withdraw {

transfer.submit = () => {
if (transfer.account === '' || transfer.amount === '') {
console.log(transfer);
empty_fields.show();
return;
}
Expand Down Expand Up @@ -344,7 +343,7 @@ class Withdraw {
}
}

liveapi.send({ get_settings: 1 })
liveapi.cached.send({ get_settings: 1 })
.then(data => {
agent.residence = data.get_settings.country_code;
const currency = local_storage.get('currency');
Expand Down
1 change: 1 addition & 0 deletions src/copytrade/copytrade.es6
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ const initConfigWindow = () => {
state.allowCopy.allow_copiers = 0;
} else {
liveapi
.cached
.send({ get_settings: 1 })
.then((settings) => {
state.is_loading = false;
Expand Down
1 change: 1 addition & 0 deletions src/instruments/instruments.es6
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import "common/util";

function refresh_active_symbols() {
liveapi
.cached
.send({ active_symbols: 'brief' })
.then(function(data) {
local_storage.set('active_symbols', data.active_symbols);
Expand Down
3 changes: 2 additions & 1 deletion src/statement/statement.es6
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const refreshTable = (yyy_mm_dd) => {

if(!loading) {
loading = true;
liveapi.send(request)
liveapi
.send(request)
.then(refresh)
.catch((err) => {
refresh({});
Expand Down
2 changes: 1 addition & 1 deletion src/trade/tradeDialog.es6
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ function init_state(available,root, dialog, symbol, contracts_for_spot) {
var update_currency = function() {
/* change currency on user login */
if(liveapi.is_authenticated()) {
liveapi.send({payout_currencies: 1})
liveapi.send({ payout_currencies: 1 })
.then(function(data){
state.currency.value = data.payout_currencies[0];
state.currency.array = data.payout_currencies;
Expand Down
1 change: 1 addition & 0 deletions src/trade/tradeMenu.es6
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const show_error = (err) => {
};
const refresh_active_symbols = () => {
liveapi
.cached
.send({ active_symbols: 'brief' })
.then((data) => {
/* clean up the data! */
Expand Down