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

enable again get config via parse rest api

parents d845f4e3 8f51623d
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"sass-loader": "3.2.0", "sass-loader": "3.2.0",
"style-loader": "0.13.1", "style-loader": "0.13.1",
"url-loader": "0.5.7", "url-loader": "0.5.7",
"webpack": "webpack/webpack#master" "webpack": "2.1.0-beta.6"
}, },
"scripts": { "scripts": {
"check": "eslint --ext \".jsx\" --ignore-pattern node_modules --quiet .", "check": "eslint --ext \".jsx\" --ignore-pattern node_modules --quiet .",
......
module.exports = {"main":{"js":"/451280bundle.js"}} module.exports = {"main":{"js":"/785572bundle.js"}}
\ No newline at end of file \ No newline at end of file
...@@ -24,9 +24,6 @@ import DistributionLists from './components/distribution/distribution_lists.jsx' ...@@ -24,9 +24,6 @@ import DistributionLists from './components/distribution/distribution_lists.jsx'
import EditDistributionList from './components/distribution/edit_distribution_lists.jsx'; import EditDistributionList from './components/distribution/edit_distribution_lists.jsx';
import SearchView from './components/search/search.jsx'; import SearchView from './components/search/search.jsx';
import SalesForm from './components/sales/sales.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 Client from './utils/client.jsx';
import * as Utils from './utils/utils.jsx'; import * as Utils from './utils/utils.jsx';
...@@ -49,7 +46,7 @@ const notFoundParams = { ...@@ -49,7 +46,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;
...@@ -124,7 +121,7 @@ function renderRootComponent() { ...@@ -124,7 +121,7 @@ function renderRootComponent() {
> >
<Route <Route
path='error' path='error'
component={ErrorPage || Template404} component={ErrorPage}
/> />
<Route <Route
component={LoggedIn} component={LoggedIn}
...@@ -218,16 +215,6 @@ function renderRootComponent() { ...@@ -218,16 +215,6 @@ function renderRootComponent() {
path='sales/:domainId/mailboxes' path='sales/:domainId/mailboxes'
component={SalesForm} component={SalesForm}
/> />
<Route
path='massive'
component={deleteMassive}
/>
<Route
path='errorsFromAction'
component={ErrorsFromActions}
/>
</Route> </Route>
<Route component={NotLoggedIn}> <Route component={NotLoggedIn}>
<IndexRedirect to='login'/> <IndexRedirect to='login'/>
......
...@@ -75,7 +75,7 @@ function initZimbra() { ...@@ -75,7 +75,7 @@ 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: 'https://manager-api.zboxapp.com/parse/functions/getConfigManager',
dataType: 'json', dataType: 'json',
method: 'POST', method: 'POST',
headers: { headers: {
......
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