Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
HalcyonJAC committed Oct 31, 2024
1 parent 20d6400 commit d98a93b
Showing 1 changed file with 34 additions and 31 deletions.
65 changes: 34 additions & 31 deletions src/views/Exercise/Reports/Diversity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -148,7 +148,7 @@
<Stat :stat="diversity[activeTab].gender.male" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].gender.male) }}
Expand All @@ -165,7 +165,7 @@
<Stat :stat="diversity[activeTab].gender.female" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].gender.female) }}
Expand All @@ -183,7 +183,7 @@
/>
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].gender.declaration) }}
Expand Down Expand Up @@ -211,7 +211,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -231,7 +231,7 @@
<Stat :stat="diversity[activeTab].ethnicity.bame" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].ethnicity.bame) }}
Expand All @@ -248,7 +248,7 @@
<Stat :stat="diversity[activeTab].ethnicity.white" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].ethnicity.white) }}
Expand All @@ -266,7 +266,7 @@
/>
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].ethnicity.declaration) }}
Expand Down Expand Up @@ -294,7 +294,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -311,7 +311,7 @@
<Stat :stat="diversity[activeTab].disability.yes" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].disability.yes) }}
Expand All @@ -325,7 +325,7 @@
<Stat :stat="diversity[activeTab].disability.no" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].disability.no) }}
Expand All @@ -343,7 +343,7 @@
/>
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].disability.total) }}
Expand Down Expand Up @@ -371,7 +371,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -391,7 +391,7 @@
<Stat :stat="diversity[activeTab].professionalBackground.barrister" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].professionalBackground.barrister) }}
Expand All @@ -405,7 +405,7 @@
<Stat :stat="diversity[activeTab].professionalBackground.cilex" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].professionalBackground.cilex) }}
Expand All @@ -419,7 +419,7 @@
<Stat :stat="diversity[activeTab].professionalBackground.solicitor" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].professionalBackground.solicitor) }}
Expand All @@ -434,7 +434,7 @@
<Stat :stat="diversity[activeTab].professionalBackground.other" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].professionalBackground.other) }}
Expand All @@ -453,7 +453,7 @@
/>
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].professionalBackground.declaration) }}
Expand Down Expand Up @@ -484,7 +484,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -501,7 +501,7 @@
<Stat :stat="diversity[activeTab].attendedUKStateSchool.attendedUKStateSchool" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].attendedUKStateSchool.attendedUKStateSchool) }}
Expand All @@ -519,7 +519,7 @@
/>
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].attendedUKStateSchool.declaration) }}
Expand Down Expand Up @@ -548,7 +548,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -565,7 +565,7 @@
<Stat :stat="diversity[activeTab].firstGenerationUniversity.firstGenerationUniversity" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].firstGenerationUniversity.firstGenerationUniversity) }}
Expand All @@ -583,7 +583,7 @@
/>
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].firstGenerationUniversity.declaration) }}
Expand Down Expand Up @@ -613,7 +613,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -630,7 +630,7 @@
<Stat :stat="diversity[activeTab].parentsNotAttendedUniversity.parentsNotAttendedUniversity" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].parentsNotAttendedUniversity.parentsNotAttendedUniversity) }}
Expand All @@ -648,7 +648,7 @@
/>
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].parentsNotAttendedUniversity.declaration) }}
Expand Down Expand Up @@ -677,7 +677,7 @@
Applications
</th>
<th
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
scope="col"
class="govuk-table__header govuk-table__header--numeric"
>
Expand All @@ -700,7 +700,7 @@
<Stat :stat="diversity[activeTab].emp.applied" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].emp.applied) }}
Expand All @@ -717,7 +717,7 @@
<Stat :stat="diversity[activeTab].emp.ethnicity" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].emp.ethnicity) }}
Expand All @@ -734,7 +734,7 @@
<Stat :stat="diversity[activeTab].emp.gender" />
</td>
<td
v-if="activeTab !== 'applied'"
v-if="isNotApplied"
class="govuk-table__cell govuk-table__cell--numeric"
>
{{ showChange(diversity[activeTab].emp.gender) }}
Expand Down Expand Up @@ -870,6 +870,9 @@ export default {
}
return '';
},
isNotApplied() {
return this.activeTab !== 'applied';
},
},
watch: {
tabs: {
Expand Down

0 comments on commit d98a93b

Please sign in to comment.