Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
editoria
bookbuilder
Commits
ede7222d
Commit
ede7222d
authored
Sep 28, 2017
by
Yannis Barlas
Browse files
add text to test button
parent
19269077
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/BookBuilder.jsx
View file @
ede7222d
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment