Commit 8f51623d authored by Juorder Gonzalez's avatar Juorder Gonzalez Committed by Juorder Antonio

roll back to get config via parse, now get it via classic way json

parents a8e5c49d 0487bce7
...@@ -103,7 +103,7 @@ export default class DomainMailboxPlans extends React.Component { ...@@ -103,7 +103,7 @@ export default class DomainMailboxPlans extends React.Component {
} }
for (const key in plans) { for (const key in plans) {
if (plans.hasOwnProperty(key) && plans[key].used !== 0 && plans[key].limit !== 0) { if (plans.hasOwnProperty(key) && plans[key].limit !== 0) {
const plan = plans[key]; const plan = plans[key];
totalUsed += (parseInt(plan.used, 10)) ? parseInt(plan.used, 10) : 0; totalUsed += (parseInt(plan.used, 10)) ? parseInt(plan.used, 10) : 0;
if (plan.limit === 0) { if (plan.limit === 0) {
......
...@@ -49,7 +49,7 @@ const notFoundParams = { ...@@ -49,7 +49,7 @@ const notFoundParams = {
function preRenderSetup(callwhendone) { function preRenderSetup(callwhendone) {
const d1 = Client.getClientConfig( const d1 = Client.getClientConfig(
(data) => { (data) => {
const config = data.result; const config = data.result || data;
if (!config) { if (!config) {
return; return;
......
...@@ -75,13 +75,8 @@ function initZimbra() { ...@@ -75,13 +75,8 @@ function initZimbra() {
export function getClientConfig(success, error) { export function getClientConfig(success, error) {
return $.ajax({ return $.ajax({
url: 'https://ventasparse-ventas.hub.zboxapp.com/parse/functions/getConfigManager', url: '/config/config.json',
dataType: 'json', dataType: 'json',
method: 'POST',
headers: {
'X-Parse-Application-Id': 'salesZboxManagerApp'
},
data: {target: 'manager'},
success, success,
error: function onError(xhr, status, err) { error: function onError(xhr, status, err) {
var e = handleError('getClientConfig', err); var e = handleError('getClientConfig', err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment