Skip to content

Commit

Permalink
24084 - Alteration Name/Type Change Logic (#596)
Browse files Browse the repository at this point in the history
* don't show error when type changed by NR

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>

* update codes

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>

---------

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>
  • Loading branch information
ArwenQin authored Nov 7, 2024
1 parent ff80079 commit 5f75da1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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-edit-ui",
"version": "4.11.3",
"version": "4.11.4",
"private": true,
"appName": "Edit UI",
"sbcName": "SBC Common Components",
Expand Down
3 changes: 2 additions & 1 deletion src/components/common/YourCompany/ChangeBusinessType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ export default class ChangeBusinessType extends Mixins(CommonMixin) {
}
get nameRequestRequiredError (): boolean {
if (this.isNumberedCompany) {
// Don't show the Error when the type is changed by name
if (this.isNumberedCompany || this.isEntityTypeChangedByName) {
return false
}
// Named companies to CC/CCC or ULC/CUL require a name request.
Expand Down
1 change: 1 addition & 0 deletions tests/unit/ChangeBusinessType.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ describe('Change Business Type component', () => {
}
} as EntitySnapshotIF
store.stateModel.tombstone.entityType = CorpTypeCd.BC_CCC
store.stateModel.tombstone.entityTypeChangedByName = false

const wrapper: any = mount(ChangeBusinessType, { vuetify })
wrapper.vm.isEditingType = true
Expand Down

0 comments on commit 5f75da1

Please sign in to comment.