59 lines
No EOL
1.3 KiB
Handlebars
59 lines
No EOL
1.3 KiB
Handlebars
{{#if showDownloadAlert}}
|
|
<div
|
|
class="file-table-download-alert"
|
|
data-test-id="file-table-download-alert"
|
|
>
|
|
<button
|
|
data-test-action="file-table-download-close"
|
|
{{action "closeDownloadAlert"}}
|
|
>
|
|
Close
|
|
</button>
|
|
<ol>
|
|
{{#each selectedFileDownloads as | file |}}
|
|
<li><strong>{{file.device}}</strong>: <code>{{file.path}}</code></li>
|
|
{{/each}}
|
|
</ol>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<header data-test-id="file-table-action-bar">
|
|
<button
|
|
data-test-action="file-table-select-all"
|
|
{{action "toggleSelectAll"}}
|
|
>
|
|
<i
|
|
class="file-table-select-status-{{selectAllStatus}}"
|
|
data-test-id="file-table-select-status-icon"
|
|
>
|
|
|
|
</i>
|
|
Selected {{selectedFilePaths.length}}
|
|
</button>
|
|
<button
|
|
data-test-action="file-table-download-selected"
|
|
{{action "downloadSelected"}}
|
|
>
|
|
Download Selected
|
|
</button>
|
|
</header>
|
|
|
|
<table>
|
|
<thead data-test-id="file-table-header">
|
|
<th> </th>
|
|
<th>Name</th>
|
|
<th>Device</th>
|
|
<th>Path</th>
|
|
<th> </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> |