|
|
|
@ -522,12 +522,12 @@ fileExplorer.prototype.renderMenuItems = function () { |
|
|
|
|
items = this.menuItems.map(({action, title, icon}) => { |
|
|
|
|
if (action === 'uploadFile') { |
|
|
|
|
return yo` |
|
|
|
|
<label class="${icon} ${css.newFile}" title="${title}"> |
|
|
|
|
<span class="${icon} ${css.newFile}" title="${title}"> |
|
|
|
|
<input type="file" onchange=${(event) => { |
|
|
|
|
event.stopPropagation() |
|
|
|
|
this.uploadFile(event) |
|
|
|
|
}} multiple /> |
|
|
|
|
</label> |
|
|
|
|
</span> |
|
|
|
|
` |
|
|
|
|
} else { |
|
|
|
|
return yo` |
|
|
|
|