-
Notifications
You must be signed in to change notification settings - Fork 46
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
14975-fix style and validation #457
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2201609
14975-fix style and validation
ketaki-deodhar a5d672b
14975-update package version
ketaki-deodhar 001d68c
14975-fix styles and validation after code review
ketaki-deodhar d19cf45
14975-fix validation
ketaki-deodhar 4cc3dec
14975-fix validations
ketaki-deodhar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,15 @@ | |
</section> | ||
<ul> | ||
<li> | ||
<v-icon v-if="hasApplicant" color="green darken-2" class="dir-valid">mdi-check</v-icon> | ||
<v-icon v-else color="red">mdi-close</v-icon> | ||
<!-- <v-icon>mdi-circle-small</v-icon> --> | ||
<v-icon v-if="isApplicantPerson" color="green darken-2" class="dir-valid">mdi-check</v-icon> | ||
<v-icon v-else-if="applicantPersonsRemoved && !isApplicantOrg" color="red">mdi-close</v-icon> | ||
<v-icon v-else>mdi-circle-small</v-icon> | ||
severinbeauvais marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<span>An individual</span> | ||
</li> | ||
<li> | ||
<v-icon v-if="hasApplicant" color="green darken-2" class="dir-valid">mdi-check</v-icon> | ||
<v-icon v-else color="red">mdi-close</v-icon> | ||
<!-- <v-icon>mdi-circle-small</v-icon> --> | ||
<v-icon v-if="isApplicantOrg" color="green darken-2" class="dir-valid">mdi-check</v-icon> | ||
<v-icon v-else-if="applicantOrgsRemoved && !isApplicantPerson" color="red">mdi-close</v-icon> | ||
<v-icon v-else>mdi-circle-small</v-icon> | ||
<span>A business or a corporation</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^^ Looks great! 😃 |
||
</li> | ||
</ul> | ||
|
@@ -296,6 +296,45 @@ export default class PeopleAndRoles extends Mixins(CommonMixin, DateMixin, OrgPe | |
return this.hasRole(RoleTypes.APPLICANT, 1, CompareModes.EXACT) | ||
} | ||
|
||
/** True when orgPerson applicant role. */ | ||
public isApplicant (orgPerson: OrgPersonIF): boolean { | ||
return orgPerson?.roles.some(role => role.roleType === RoleTypes.APPLICANT) | ||
} | ||
|
||
get applicantPersons (): OrgPersonIF[] { | ||
return this.getOrgPeople.filter(person => | ||
this.isApplicant(person) && this.isPartyTypePerson(person) && !this.wasRemoved(person) | ||
) | ||
} | ||
|
||
get applicantOrgs (): OrgPersonIF[] { | ||
return this.getOrgPeople.filter(person => | ||
this.isApplicant(person) && this.isPartyTypeOrg(person) && !this.wasRemoved(person) | ||
) | ||
} | ||
|
||
get applicantPersonsRemoved (): OrgPersonIF[] { | ||
severinbeauvais marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return this.getOrgPeople.filter(person => | ||
this.isApplicant(person) && this.isPartyTypePerson(person) && this.wasRemoved(person) | ||
) | ||
} | ||
|
||
get applicantOrgsRemoved (): OrgPersonIF[] { | ||
return this.getOrgPeople.filter(person => | ||
this.isApplicant(person) && this.isPartyTypeOrg(person) && this.wasRemoved(person) | ||
) | ||
} | ||
|
||
/** True when applicant party type is org. */ | ||
get isApplicantOrg () : boolean { | ||
return this.applicantOrgs.length > 0 | ||
} | ||
|
||
/** True when applicant party type is person. */ | ||
get isApplicantPerson () : boolean { | ||
return this.applicantPersons.length > 0 | ||
} | ||
|
||
/** True if we have all required parties. */ | ||
get haveRequiredParties (): boolean { | ||
if (this.isAlterationFiling) { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Removed overall padding. margin-top at line 620 was being overridden by this (line 623). Reduced margin-top (line 620) to align with the column on left. It is misaligned in DEV as well. This fixes the alignment for other filings (Change, Correction and Conversion). I tested for all the other filing types
In DEV:

After Fix:
