file-browser: custom icon for files

This commit is contained in:
jean-emmanuel 2019-04-02 09:35:10 +02:00
parent 0311ee7e2d
commit b20205463d
2 changed files with 10 additions and 8 deletions

View file

@ -283,7 +283,7 @@ module.exports = {
list.appendChild(html`
<div class="file">
<input type="radio" value="${file.name}" name="file" class="${file.folder ? 'folder' : 'file'}"/>
<div class="label"><span>${raw(module.exports.icon(file.folder ? 'folder' : 'file-alt'))} ${file.name}</span></div>
<div class="label"><span>${raw(module.exports.icon(file.folder ? 'folder' : 'osc'))} ${file.name}</span></div>
</div>
`)
}