aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/templates/components
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2019-04-24 21:41:50 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2019-04-24 21:41:50 +0300
commit6954dbf99e66052cf7a0518355088d62bfdec5dd (patch)
tree1d7c9b9e25d806334bc1d34ad82ec850e49ec78d /javascript/app/templates/components
parent6b647e644625a999cf1b072700fcc132939face8 (diff)
Add an option to sort files by name/type
Diffstat (limited to 'javascript/app/templates/components')
-rw-r--r--javascript/app/templates/components/file-tree.hbs12
1 files changed, 12 insertions, 0 deletions
diff --git a/javascript/app/templates/components/file-tree.hbs b/javascript/app/templates/components/file-tree.hbs
index b5e38ef..3559efe 100644
--- a/javascript/app/templates/components/file-tree.hbs
+++ b/javascript/app/templates/components/file-tree.hbs
@@ -2,6 +2,18 @@
<div class="input-group">
{{input class="form-control" value=query placeholder="Filename"}}<a class="hide-file-tree" href="#" {{action "hide"}}>Hide</a>
</div>
+ <div>
+ {{#radio-button
+ value="alphabetical"
+ groupValue=sortType}}
+ <span>Sort by name</span>
+ {{/radio-button}}
+ {{#radio-button
+ value="type"
+ groupValue=sortType}}
+ <span>Sort by type</span>
+ {{/radio-button}}
+ </div>
</div>
<div class="file-tree-content">
<div class="file-tree"></div>