Commit ea5e3758 authored by Juorder Gonzalez's avatar Juorder Gonzalez Committed by Juorder Antonio

roll back to index.jsx old version

parents d845f4e3 8f51623d
......@@ -24,9 +24,6 @@ import DistributionLists from './components/distribution/distribution_lists.jsx'
import EditDistributionList from './components/distribution/edit_distribution_lists.jsx';
import SearchView from './components/search/search.jsx';
import SalesForm from './components/sales/sales.jsx';
import deleteMassive from './components/massive/masive_delete.jsx';
import ErrorsFromActions from './components/errors_from_action.jsx';
import Template404 from './components/404/404.jsx';
import * as Client from './utils/client.jsx';
import * as Utils from './utils/utils.jsx';
......@@ -49,15 +46,14 @@ const notFoundParams = {
function preRenderSetup(callwhendone) {
const d1 = Client.getClientConfig(
(data) => {
const config = data.result;
if (!config) {
if (!data) {
return;
}
global.window.manager_config = config;
global.window.manager_config = data;
if (config.debug) {
if (data.debug) {
global.window.Client = Client;
global.window.Utils = Utils;
}
......@@ -124,7 +120,7 @@ function renderRootComponent() {
>
<Route
path='error'
component={ErrorPage || Template404}
component={ErrorPage}
/>
<Route
component={LoggedIn}
......@@ -218,16 +214,6 @@ function renderRootComponent() {
path='sales/:domainId/mailboxes'
component={SalesForm}
/>
<Route
path='massive'
component={deleteMassive}
/>
<Route
path='errorsFromAction'
component={ErrorsFromActions}
/>
</Route>
<Route component={NotLoggedIn}>
<IndexRedirect to='login'/>
......
......@@ -75,13 +75,8 @@ function initZimbra() {
export function getClientConfig(success, error) {
return $.ajax({
url: 'https://ventasparse-ventas.hub.zboxapp.com/parse/functions/getConfigManager',
url: '/config/config.json',
dataType: 'json',
method: 'POST',
headers: {
'X-Parse-Application-Id': 'salesZboxManagerApp'
},
data: {target: 'manager'},
success,
error: function onError(xhr, status, 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