Skip to content

Commit

Permalink
Merge pull request #249 from lfdgov/bug/disable-fto-sa-buttons
Browse files Browse the repository at this point in the history
disable fto sa for view/edit
  • Loading branch information
lfdgov authored Oct 17, 2023
2 parents fa77ce6 + b7d5dba commit 167f517
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export class DFAApplicationMainComponent
this.dfaApplicationMainStepper.selectedIndex = 0;
if (this.signAndSubmitForm.get('applicantSignature')?.get('dateSigned')?.value) {
this.vieworedit = "view";
this.dfaApplicationMainDataService.setViewOrEdit("view");
this.dfaApplicationMainDataService.isSubmitted = true;
for (var i = 0; i <= 7; i++) {
this.dfaApplicationMainStepper.selected.completed = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

</table>

<div *ngIf="fullTimeOccupantsDataSource.getValue().length > 0">
<div *ngIf="fullTimeOccupantsDataSource.getValue().length > 0">
<br /><br/>
</div>

Expand All @@ -77,7 +77,7 @@
</div>

<button
*ngIf="!showFullTimeOccupantForm"
*ngIf="!showFullTimeOccupantForm && dfaApplicationMainDataService.getViewOrEdit() !== 'view' && dfaApplicationMainDataService.getViewOrEdit() !== 'edit'"
class="family-button"
mat-button
type="button"
Expand Down Expand Up @@ -279,12 +279,17 @@

</table>

<div *ngIf="secondaryApplicantsDataSource.getValue().length > 0">
<div *ngIf="secondaryApplicantsDataSource.getValue().length > 0">
<br /><br/>
</div>

<div *ngIf="secondaryApplicantsDataSource.getValue().length == 0 && (dfaApplicationMainDataService.getViewOrEdit() === 'view' || dfaApplicationMainDataService.getViewOrEdit() === 'edit')">
<b>No secondary applicants added.</b>
<br /><br/>
</div>

<button
*ngIf="!showSecondaryApplicantForm"
*ngIf="!showSecondaryApplicantForm && dfaApplicationMainDataService.getViewOrEdit() !== 'view' && dfaApplicationMainDataService.getViewOrEdit() !== 'edit'"
class="family-button"
mat-button
type="button"
Expand Down

0 comments on commit 167f517

Please sign in to comment.