Commit ede7222d authored by Yannis Barlas's avatar Yannis Barlas
Browse files

add text to test button

parent 19269077
......@@ -167,6 +167,10 @@ export class BookBuilder extends React.Component {
const { book } = this.props
htmlToEpub(book.id).then((res) => {
console.log('res', res)
const path = res.path
const url = 'localhost:3000/vivliostyle/viewer/vivliostyle-viewer.html#b=' + path
// this.props.history.push()
window.location = '/vivliostyle/viewer/vivliostyle-viewer.html#b=/uploads/' + path
})
// console.log('props', this.props)
// console.log('actions', this.props.actions)
......@@ -217,7 +221,7 @@ export class BookBuilder extends React.Component {
return (
<div className='bootstrap modal pubsweet-component pubsweet-component-scroll'>
<div className={styles.bookBuilder}>
<button onClick={this.handleHTMLToEpub} />
<button onClick={this.handleHTMLToEpub}> Do it </button>
<div
className='col-lg-offset-2 col-lg-8 col-md-8 col-sm-12 col-xs-12'
ref='outerContainer'
......
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