Fixed sandbox. Multiple tabs work now.

WiP on selectable mosaico templates.

TODO: Make files always point to trusted URL, such that we don't have to rebase them. They are public anyway. The same goes for mosaico endpoints: /mosaico/templates and /mosaico/img
This commit is contained in:
Tomas Bures 2018-05-09 04:07:01 +02:00
parent a4ee1534cc
commit 7788b0bc67
79 changed files with 724 additions and 390 deletions

View file

@ -1,5 +1,7 @@
'use strict';
import './lib/public-path';
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import {
@ -128,7 +130,7 @@ class Root extends Component {
}
async logout() {
await axios.post('/rest/logout');
await axios.post(getUrl('rest/logout'));
window.location = getUrl();
}