Skip to content

Commit

Permalink
Treat 750 harrison SRO the same way we treat 1335 folsom (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
akegan authored Jul 16, 2021
1 parent 2649aff commit bdc0285
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ ListingConstantsService = () ->
'a0W0P00000FIuv3UAD': '1335 Folsom Street'
'a0W4U00000HlubxUAB': '1335 Folsom Street'
'a0W4U00000KGFDWUA5': '1335 Folsom Street'
'a0W4U00000KKtXyUAL': '750 Harrison'
}

return Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ ListingEligibilityService = ($localStorage, ListingIdentityService, ListingUnitS
# TO DO: Create long-term fix for some SRO units that allow 2 people.
if (
ListingIdentityService.listingIs('Merry Go Round Shared Housing', listing) ||
ListingIdentityService.listingIs('1335 Folsom Street', listing)
ListingIdentityService.listingIs('1335 Folsom Street', listing) ||
ListingIdentityService.listingIs('750 Harrison', listing)
)
max = 2
else if ListingUnitService.listingHasOnlySROUnits(listing)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ accordion-heading.lead
p.custom-counter_text ng-if="::$ctrl.parent.isSale($ctrl.parent.listing)"
| {{'listings.occupancy_description_min_one' | translate}}
/ TODO: Remove case for hardcoded listings - still needs Folsom 3/3/19
p.custom-counter_text ng-if="::$ctrl.listingHasOnlySROUnits() && !$ctrl.parent.listingIs('1335 Folsom Street', $ctrl.parent.listing)"
p.custom-counter_text ng-if="::$ctrl.listingHasOnlySROUnits() && !($ctrl.parent.listingIs('1335 Folsom Street' || $ctrl.parent.listingIs('750 Harrison')), $ctrl.parent.listing)"
| {{'listings.occupancy_description_all_sro' | translate}}
p.custom-counter_text ng-if="::$ctrl.parent.listingIs('1335 Folsom Street', $ctrl.parent.listing)"
p.custom-counter_text ng-if="::($ctrl.parent.listingIs('1335 Folsom Street', $ctrl.parent.listing) || $ctrl.parent.listingIs('750 Harrison', $ctrl.parent.listing))"
| {{'listings.occupancy_description_all_sro_plural' | translate:"{ numberOfPeople: '2' }"}}
p.custom-counter_text ng-if="::!$ctrl.listingHasOnlySROUnits($ctrl.parent.listing) && $ctrl.parent.listingHasSROUnits($ctrl.parent.listing)"
| {{'listings.occupancy_description_some_sro' | translate}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@


/ TODO: remove case for hardcoded listings
.content-card ng-if="::$ctrl.parent.listingHasSROUnits($ctrl.parent.listing) && !$ctrl.parent.listingIs('1335 Folsom Street', $ctrl.parent.listing)"
.content-card ng-if="::$ctrl.parent.listingHasSROUnits($ctrl.parent.listing) && !($ctrl.parent.listingIs('1335 Folsom Street', $ctrl.parent.listing) || $ctrl.parent.listingIs('750 Harrison', $ctrl.parent.listing))"
h4.content-card_title translate="listings.single_room_occupancy"
/ TODO: remove hardcoded case for Merry Go Round Shared Housing listing
p.c-steel translate="listings.single_room_occupancy_description" ng-if="::!$ctrl.parent.listingIs('Merry Go Round Shared Housing', $ctrl.parent.listing)"
Expand Down

0 comments on commit bdc0285

Please sign in to comment.