Skip to content

Commit

Permalink
Make Certify block non-editable if non-staff user (AGM Filings) (#564)
Browse files Browse the repository at this point in the history
Make certify block non-editable if non-staff user
  • Loading branch information
JazzarKarim authored Nov 2, 2023
1 parent 9b3a4e8 commit b93ab40
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-filings-ui",
"version": "6.9.5",
"version": "6.9.6",
"private": true,
"appName": "Filings UI",
"sbcName": "SBC Common Components",
Expand Down
1 change: 1 addition & 0 deletions src/views/AgmExtension.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
:isCertified.sync="isCertified"
:certifiedBy.sync="certifiedBy"
:class="{ 'invalid-certify': !certifyFormValid && showErrors }"
:disableEdit="!isRoleStaff"
:entityDisplay="displayName()"
:message="certifyText(FilingCodes.AGM_EXTENSION)"
@valid="certifyFormValid=$event"
Expand Down
3 changes: 2 additions & 1 deletion src/views/AgmLocationChg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
:isCertified.sync="isCertified"
:certifiedBy.sync="certifiedBy"
:class="{ 'invalid-certify': !certifyFormValid && showErrors }"
:disableEdit="!isRoleStaff"
:entityDisplay="displayName()"
:message="certifyText(FilingCodes.AGM_LOCATION_CHANGE)"
@valid="certifyFormValid=$event"
Expand Down Expand Up @@ -419,7 +420,7 @@ export default class AgmLocationChg extends Mixins(CommonMixin, DateMixin,
mounted (): void {
// Pre-populate the certified block with the logged in user's name (if not staff)
if (!this.isRoleStaff && this.getUserInfo) {
this.certifiedBy = this.getUserInfo.firstname + ' ' + this.getUserInfo.lastName
this.certifiedBy = this.getUserInfo.firstname + ' ' + this.getUserInfo.lastname
}
// always include agm location change code
Expand Down
4 changes: 1 addition & 3 deletions src/views/ConsentContinuationOut.vue
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,7 @@ export default class ConsentContinuationOut extends Mixins(CommonMixin, DateMixi
// Pre-populate the certified block with the logged in user's name (if not staff)
if (!this.isRoleStaff && this.getUserInfo) {
const firstName = this.getUserInfo?.firstname
const lastName = this.getUserInfo?.lastname
this.certifiedBy = firstName + ' ' + lastName
this.certifiedBy = this.getUserInfo.firstname + ' ' + this.getUserInfo.lastname
}
// always include consent continue out code
Expand Down

0 comments on commit b93ab40

Please sign in to comment.