Skip to content

Commit

Permalink
feat: DAH-3083 remove preferences in DALP application summary (#2492)
Browse files Browse the repository at this point in the history
* feat: DAH-3077 hide lottery prefs

* feat: remove preferences section

* fix: merge conflict

* fix: controller

* fix: ng-if function

* test: update test

---------

Co-authored-by: tallulah <[email protected]>
  • Loading branch information
cliu02 and tallulahkay authored Jan 22, 2025
1 parent c60b40b commit 5af3025
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ div ng-if="::$ctrl.application.householdIncome.incomeTotal"
| {{::$ctrl.applicationIncomeAmount()}}

/ Preferences
div ng-if="::!$ctrl.atAutofillPreview"
div ng-if="::(!$ctrl.atAutofillPreview && !$ctrl.isDALPListing())"
review-summary-section header="{{'label.preferences' | translate}}" section-name="{{::$ctrl.getStartOfSection({name: 'Preferences'})}}" editable="::$ctrl.sectionsAreEditable" edit-description="{{'label.edit_preferences' | translate}}"
preferences-summary application="$ctrl.application" listing="$ctrl.listing" preferences="$ctrl.preferences"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ angular.module('dahlia.components')
preferences: '<'
showVeteransApplicationQuestion: '<'
controller: [
'$filter', '$state', '$translate', 'LendingInstitutionService', 'ShortFormHelperService', 'ShortFormNavigationService', 'ShortFormRaceEthnicityService',
($filter, $state, $translate, LendingInstitutionService, ShortFormHelperService, ShortFormNavigationService, ShortFormRaceEthnicityService) ->
'$filter', '$state', '$translate', 'LendingInstitutionService', 'ShortFormHelperService', 'ShortFormNavigationService', 'ShortFormRaceEthnicityService', 'ListingDataService',
($filter, $state, $translate, LendingInstitutionService, ShortFormHelperService, ShortFormNavigationService, ShortFormRaceEthnicityService, ListingDataService) ->
ctrl = @

ctrl.$onInit = ->
Expand Down Expand Up @@ -133,5 +133,8 @@ angular.module('dahlia.components')
ctrl.getIsNonPrimaryMemberVeteran = ->
ctrl.translatedYesNoNoAnswer(ctrl.application.isNonPrimaryMemberVeteran)

ctrl.isDALPListing = ->
ListingDataService.listing.Custom_Listing_Type == 'Downpayment Assistance Loan Program'

return ctrl
]
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ do ->
getStartOfSection: jasmine.createSpy()
fakeShortFormRaceEthnicityService =
salesforceToHumanReadable: jasmine.createSpy()
fakeListingDataService =
getListing: jasmine.createSpy()

beforeEach module('dahlia.components')
beforeEach module('customFilters', ($provide) ->)

Expand All @@ -55,6 +58,7 @@ do ->
ShortFormHelperService: fakeShortFormHelperService
ShortFormNavigationService: fakeShortFormNavigationService
ShortFormRaceEthnicityService: fakeShortFormRaceEthnicityService
ListingDataService: fakeListingDataService
)

beforeEach ->
Expand Down

0 comments on commit 5af3025

Please sign in to comment.