-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10255 - Bug fix for Account accessType change premium to GovN #1872
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1872 +/- ##
==========================================
- Coverage 79.70% 79.14% -0.56%
==========================================
Files 276 283 +7
Lines 9603 9731 +128
Branches 449 304 -145
==========================================
+ Hits 7654 7702 +48
- Misses 1949 2029 +80
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -20,7 +20,7 @@ | |||
<span data-test="txt-selected-access-type">{{ selectedAccessType === AccessType.GOVN ? 'Government agency (other than BC provincial)' : 'Regular Access'}}</span> | |||
</div> | |||
<div | |||
v-if="canChangeAccessType" | |||
v-if="canChangeAccessType && selectedAccessType !== AccessType.GOVN" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this condition to enable the Change button? If so, shouldn't this check for GOVM too ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored the code accordingly
@@ -122,6 +122,25 @@ export default class AccountAccessType extends Vue { | |||
return this.currentOrgPaymentType && this.currentOrgPaymentType === PaymentTypes.PAD | |||
} | |||
|
|||
public get isChangeButtonEnabled (): boolean { | |||
let isChangeButtonEnabled: boolean = this.organization.orgType === Account.PREMIUM // Only Premium accounts can be edited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use different name for function and variables
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Issue #:
bcgov/entity#10255
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).