mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
Fix upload/hashing button in FileDragAndDropDialog
This commit is contained in:
parent
efde22270c
commit
446ed311ea
@ -58,8 +58,14 @@ let FileDragAndDropDialog = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<div className="file-drag-and-drop-dialog present-options">
|
<div className="file-drag-and-drop-dialog present-options">
|
||||||
<p>{getLangText('Would you rather')}</p>
|
<p>{getLangText('Would you rather')}</p>
|
||||||
|
{/*
|
||||||
|
The frontend in live is hosted under /app,
|
||||||
|
Since `Link` is appending that base url, if its defined
|
||||||
|
by itself, we need to make sure to not set it at this point.
|
||||||
|
Otherwise it will be appended twice.
|
||||||
|
*/}
|
||||||
<Link
|
<Link
|
||||||
to={window.location.pathname}
|
to={`/${window.location.pathname.split('/').pop()}`}
|
||||||
query={queryParamsHash}>
|
query={queryParamsHash}>
|
||||||
<span className="btn btn-default btn-sm">
|
<span className="btn btn-default btn-sm">
|
||||||
{getLangText('Hash your work')}
|
{getLangText('Hash your work')}
|
||||||
@ -69,7 +75,7 @@ let FileDragAndDropDialog = React.createClass({
|
|||||||
<span> or </span>
|
<span> or </span>
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
to={window.location.pathname}
|
to={`/${window.location.pathname.split('/').pop()}`}
|
||||||
query={queryParamsUpload}>
|
query={queryParamsUpload}>
|
||||||
<span className="btn btn-default btn-sm">
|
<span className="btn btn-default btn-sm">
|
||||||
{getLangText('Upload and hash your work')}
|
{getLangText('Upload and hash your work')}
|
||||||
|
Loading…
Reference in New Issue
Block a user