1
0
Fork 0
ember-file-download-list-ex.../app/templates/components/file-table.hbs
2018-12-16 14:47:34 -06:00

29 lines
No EOL
690 B
Handlebars

<header data-test-id="file-table-action-bar">
<button
data-test-action="file-table-select-all"
{{action "toggleSelectAll"}}
>
Selected {{selectedFilePaths.length}}
</button>
<button data-test-action="file-table-download-selected">Download Selected</button>
</header>
<table>
<thead data-test-id="file-table-header">
<th>&nbsp;</th>
<th>Name</th>
<th>Device</th>
<th>Path</th>
<th>&nbsp;</th>
<th>Status</th>
</thead>
<tbody>
{{#each files as | file |}}
{{file-table-item
file=file
selectedFilePaths=selectedFilePaths
click=(action "toggleSelectedPath" file.path)
}}
{{/each}}
</tbody>
</table>