Skip to content

Commit

Permalink
#686 Add selected option to IA dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlovesgithub committed Jul 20, 2020
1 parent 02ea278 commit 48c726b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/views/Exercises/Tasks/IndependentAssessments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<dd class="govuk-summary-list__actions" />
</div>
</dl>

<div
v-if="!hasInitialisedAssessments"
>
Expand All @@ -55,6 +54,13 @@
>
Shortlisted ({{ exercise.applicationRecords.shortlisted }})
</option>

<option
v-if="hasApplicationsRecordsSelected"
value="selected"
>
Selected ({{ exercise.applicationRecords.selected }})
</option>
</select>

<ActionButton
Expand Down Expand Up @@ -273,6 +279,13 @@ export default {
return false;
}
},
hasApplicationsRecordsSelected(){
if(this.exercise && this.exercise.applicationRecords && this.exercise.applicationRecords.selected){
return true;
} else {
return false;
}
},
onStaging() {
return window.location.href.indexOf('admin-staging') > 0;
},
Expand Down

0 comments on commit 48c726b

Please sign in to comment.