drop.chapril.org-firefoxsend/app/templates/downloadButton.js

17 lines
344 B
JavaScript
Raw Normal View History

2018-01-24 19:23:13 +01:00
const html = require('choo/html');
module.exports = function(state, emit) {
function download(event) {
event.preventDefault();
emit('download', state.fileInfo);
}
return html`
<div>
<button id="download-btn"
class="btn"
onclick=${download}>${state.translate('downloadButtonLabel')}
</button>
</div>`;
};