Skip to content
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

Auth-web: Magic link bug fixing #2533

Merged
merged 2 commits into from
Sep 12, 2023
Merged

Auth-web: Magic link bug fixing #2533

merged 2 commits into from
Sep 12, 2023

Conversation

Jxio
Copy link
Collaborator

@Jxio Jxio commented Sep 12, 2023

Description of changes:

  1. Name request cancel button clear the input box
  2. Fix help dialog section
  3. Display loading when it re-fetch affiliations

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).

@Jxio Jxio added the bug Something isn't working label Sep 12, 2023
@Jxio Jxio self-assigned this Sep 12, 2023
@Jxio
Copy link
Collaborator Author

Jxio commented Sep 12, 2023

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-2533-havced7i.web.app

@@ -581,15 +581,19 @@ export default class EntityManagement extends Mixins(AccountMixin, AccountChange
try {
await this.syncOrganization(this.currentAccountSettings.id)
await this.addOrgSettings(this.currentOrganization)
this.isLoading = 1 // truthy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use a boolean?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it used !!isLoading I think, not too sure

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!!isLoading

image

Copy link
Collaborator

@seeker25 seeker25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just change it to a boolean, int makes sense if you're addressing a panel number etc, otherwise writing this.isLoading =1 // truthy and falsy

is cleaner with

this.isLoading = true
this.isLoading = false

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@seeker25 seeker25 merged commit f1dc806 into bcgov:main Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants