Skip to content

Commit

Permalink
Merge pull request #1963 from bcgov/fix/EDX-2967
Browse files Browse the repository at this point in the history
Fix for EDX-2967
  • Loading branch information
SodhiA1 authored Sep 27, 2024
2 parents fa52d37 + 4ee3101 commit 41d6993
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
:district-collection-object="districtCollectionObject"
:is-final-sign-off="true"
:is-collection-active="isCollectionActive"
:show-signatures="true"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Resolved <br> Duplicates
</v-tab>
<v-tab
v-if="isFinalSignOff && !isMigratedCollection"
v-if="isFinalSignOff && !isMigratedCollection && showSignatures"
key="SignOff"
value="SignOff"
class="divider"
Expand Down Expand Up @@ -244,6 +244,11 @@ export default {
isCollectionActive: {
type: Boolean,
required: true
},
showSignatures: {
type: Boolean,
required: false,
default: false
}
},
emits: ['next', 'previous'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
:non-allowable-duplicates="nonAllowableDuplicates"
:allowable-duplicates="allowableDuplicates"
:resolved-duplicates="resolvedDuplicates"
:can-resolve-duplicates="schoolCollectionObject.sdcSchoolCollectionStatusCode === 'P_DUP_POST'"
:can-resolve-duplicates="schoolCollectionObject.sdcSchoolCollectionStatusCode === 'P_DUP_POST' && hasEditPermission()"
@refresh-duplicates="getProvincialDuplicates()"
/>
</v-window-item>
Expand All @@ -77,7 +77,7 @@
<PrimaryButton
id="step-4-next-button-district"
class="mr-3 mb-3"
:disabled="disableNextButton() || apiError || !hasEditPermission"
:disabled="disableNextButton() || apiError || !hasEditPermission()"
icon="mdi-check"
text="Verify as Correct"
:click-action="next"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
show-arrows
>
<v-tab
v-for="name in tabs"
v-for="name in visibleTabs"
:key="name"
class="tab-divider"
:value="name"
Expand Down Expand Up @@ -111,6 +111,7 @@ import EnrollmentHeadcountsComponent from './EnrollmentHeadcountsComponent.vue';
import IndigenousHeadcountsComponent from './IndigenousHeadcountsComponent.vue';
import {mapState} from 'pinia';
import {sdcCollectionStore} from '../../../../store/modules/sdcCollection';
import {COLLECTIONCODETYPE} from '../../../../utils/constants/CollectionCodeType';
export default defineComponent({
name: 'SummaryComponent',
Expand All @@ -133,7 +134,7 @@ export default defineComponent({
'Inclusive Education',
'English Language Learning',
'Refugee'
],
],
selectedTab: null,
studentsInError: null,
headerSearchParams: {}
Expand Down Expand Up @@ -172,6 +173,9 @@ export default defineComponent({
return ELL.summaryReport[0].tableID;
}
return null;
},
visibleTabs() {
return this.currentCollectionTypeCode === COLLECTIONCODETYPE.FEBRUARY ? this.tabs : this.tabs.filter((tab) => tab !== 'Refugee') ;
}
},
watch: {
Expand Down

0 comments on commit 41d6993

Please sign in to comment.