|
@@ -1,5 +1,6 @@
|
|
|
import html from '../../core/html'
|
|
|
import FileItem from './FileItem'
|
|
|
+import ActionBrowseTagline from './ActionBrowseTagline'
|
|
|
import { dashboardBgIcon } from './icons'
|
|
|
|
|
|
export default (props) => {
|
|
@@ -8,18 +9,14 @@ export default (props) => {
|
|
|
${props.totalFileCount === 0
|
|
|
? html`<div class="UppyDashboard-bgIcon">
|
|
|
${dashboardBgIcon()}
|
|
|
- <h4 class="UppyDashboard-dropFilesTitle">
|
|
|
- ${props.i18n('dropPasteImport')}
|
|
|
- ${props.acquirers.length === 0
|
|
|
- ? html`<span>or <button type="button"
|
|
|
- class="UppyDashboard-browse"
|
|
|
- onclick=${(ev) => {
|
|
|
- const input = document.querySelector(`${props.container} .UppyDashboard-input`)
|
|
|
- input.click()
|
|
|
- }}>browse</button></span>`
|
|
|
- : null
|
|
|
- }
|
|
|
- </h4>
|
|
|
+ <h3 class="UppyDashboard-dropFilesTitle">
|
|
|
+ ${ActionBrowseTagline({
|
|
|
+ acquirers: props.acquirers,
|
|
|
+ container: props.container,
|
|
|
+ handleInputChange: props.handleInputChange,
|
|
|
+ i18n: props.i18n
|
|
|
+ })}
|
|
|
+ </h3>
|
|
|
<input class="UppyDashboard-input" type="file" name="files[]" multiple="true"
|
|
|
onchange=${props.handleInputChange} />
|
|
|
</div>`
|