From 39374ddd1063761b0d884c28f8b959fd3a7e385a Mon Sep 17 00:00:00 2001 From: Pablo Klijnjan Date: Fri, 31 Mar 2017 07:21:17 +0300 Subject: [PATCH] gh-52 Fix for buttons in submit form They are now enabled properly after selecting a file --- app/components/file-selector/template.hbs | 5 +++-- .../components/file-selector/component-test.js | 13 ++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/app/components/file-selector/template.hbs b/app/components/file-selector/template.hbs index f61d039..0c7a278 100644 --- a/app/components/file-selector/template.hbs +++ b/app/components/file-selector/template.hbs @@ -3,11 +3,11 @@
note that README.md, test files and nested folders are skipped from this list
{{#if problem.files}} -
+
{{#each problem.files as |file|}}
- {{ui-radio name="selectedFile" value=file label=file current=selectedFile}} + {{ui-radio name="selectedFile" value=file label=file current=selectedFile onChange=(action (mut selectedFile))}}
{{/each}}
@@ -27,6 +27,7 @@ Submit