Skip to content

Commit

Permalink
Additional Completing Party Updates (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Nov 19, 2021
1 parent f8effe6 commit 8d79205
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/AddPeopleAndRoles/OrgPerson.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</label>

<div class="meta-container__inner">
<v-card outlined class="message-box" v-if="isCompletingParty && !isRoleStaff">
<v-card outlined class="message-box" v-if="isCompletingParty && !isRoleStaff && isTypeCoop">
<p>
<strong>Important:</strong> The Completing Party information below is based on your
BC Registries account information. Your name cannot be changed here. Name changes must
Expand All @@ -43,7 +43,7 @@
<v-form
ref="addPersonOrgForm"
class="appoint-form"
:class="{ 'mt-8': isCompletingParty && !isRoleStaff }"
:class="{ 'mt-8': isCompletingParty && !isRoleStaff && isTypeCoop}"
v-model="addPersonOrgFormValid"
v-on:submit.prevent
>
Expand All @@ -59,7 +59,7 @@
id="person__first-name"
v-model="orgPerson.officer.firstName"
:rules="firstNameRules"
:readonly="isCompletingParty && !isRoleStaff"
:readonly="isCompletingParty && !isRoleStaff && isTypeCoop"
/>
<v-text-field
filled
Expand All @@ -68,7 +68,7 @@
id="person__middle-name"
v-model="orgPerson.officer.middleName"
:rules="middleNameRules"
:readonly="isCompletingParty && !isRoleStaff"
:readonly="isCompletingParty && !isRoleStaff && isTypeCoop"
/>
<v-text-field
filled
Expand All @@ -77,7 +77,7 @@
id="person__last-name"
v-model="orgPerson.officer.lastName"
:rules="lastNameRules"
:readonly="isCompletingParty && !isRoleStaff"
:readonly="isCompletingParty && !isRoleStaff && isTypeCoop"
/>
</div>
</template>
Expand Down Expand Up @@ -241,6 +241,7 @@ export default class OrgPerson extends Mixins(EntityFilterMixin, CommonMixin) {
@Getter getCurrentDate!: string
@Getter isRoleStaff!: boolean
@Getter isTypeCoop!: boolean
// Local properties
private orgPerson: OrgPersonIF = null
Expand Down

0 comments on commit 8d79205

Please sign in to comment.