Skip to content

Commit

Permalink
Merge pull request #621 from canada-ca/fix_620
Browse files Browse the repository at this point in the history
fix #620 make upload button always available
  • Loading branch information
MrDeshaies committed Mar 6, 2021
2 parents 9cffbb9 + e2893b4 commit fe5ab5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
24 changes: 11 additions & 13 deletions src/components/ActionButtonBar.vue
Expand Up @@ -37,19 +37,17 @@
</ul>
</div>
<div v-else>
<div v-if="this.survey.currentPageNo != 0">
<label for="fileChoose" class="btn btn-default">
{{ $t("jsonFileUpload") }}
</label>
<input
id="fileChoose"
type="file"
value="Load"
accept=".json"
style="display: none"
@change="onFileChanged($event)"
/>
</div>
<label for="fileChoose" class="btn btn-default">
{{ $t("jsonFileUpload") }}
</label>
<input
id="fileChoose"
type="file"
value="Load"
accept=".json"
style="display: none"
@change="onFileChanged($event)"
/>
</div>
</div>
</template>
Expand Down
1 change: 0 additions & 1 deletion src/views/Home.vue
Expand Up @@ -22,7 +22,6 @@
:survey="Survey"
/>
</form>
<br />
<DropDown :survey="Survey" :displayDropDown="allowDropdown" />
<br />
<AssessmentTool :survey="Survey" />
Expand Down

0 comments on commit fe5ab5e

Please sign in to comment.