Skip to content

Commit

Permalink
Merge pull request #171 from CityOfDetroit/fix.issue.170
Browse files Browse the repository at this point in the history
Updating CDBG Basement Backup program panel with new title.
  • Loading branch information
jedgar1mx authored Apr 23, 2024
2 parents 91d8187 + 086849a commit d97c0df
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build/assets/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.sentry-internal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.sentry.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.terraformer-arcgis-parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.terraformer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/assets/js/vendors.turf.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Local Services Lookup</title><meta name="description" content="App to lookup city services based on a location."><meta name="author" content="Edgar Montes"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=5"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"><link href="https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.css" rel="stylesheet"/><script defer="defer" src="assets/js/runtime.js"></script><script defer="defer" src="assets/js/vendors.sentry.js"></script><script defer="defer" src="assets/js/vendors.sentry-internal.js"></script><script defer="defer" src="assets/js/vendors.terraformer.js"></script><script defer="defer" src="assets/js/vendors.terraformer-arcgis-parser.js"></script><script defer="defer" src="assets/js/vendors.turf.js"></script><script defer="defer" src="assets/js/main.js"></script></head><body><my-home-info data-geocoder-label="Property Address:" data-inital-sets="" data-app-state="active-screen" data-parcel-id="none" data-api-stored-datasets="{}" data-api-active-datasets="none" data-active-section="about this property" data-active-sets="assessors-data,neighborhood,recycling,rental-data,rental-cert,demo-status,blight-data,permit-data,DWSDBackupProtection,HRDFlooding" data-app-mode="my-home-info" data-map-available="false" data-map-active-data=""><p class="no-wc">Please turn on javascript to use this feature. Thanks!</p></my-home-info><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/main.js"></script><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/runtime.js"></script><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/vendors.babel.js"></script><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/vendors.maplibre-gl.js"></script><script src="index.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Local Services Lookup</title><meta name="description" content="App to lookup city services based on a location."><meta name="author" content="Edgar Montes"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=5"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"><link href="https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.css" rel="stylesheet"/><script defer="defer" src="assets/js/runtime.js"></script><script defer="defer" src="assets/js/vendors.sentry.js"></script><script defer="defer" src="assets/js/vendors.sentry-internal.js"></script><script defer="defer" src="assets/js/vendors.terraformer.js"></script><script defer="defer" src="assets/js/vendors.terraformer-arcgis-parser.js"></script><script defer="defer" src="assets/js/vendors.turf.js"></script><script defer="defer" src="assets/js/main.js"></script></head><body><my-home-info data-geocoder-label="Check your property’s eligibility for the CDBG-DR Private Sewer Repair Program below and apply, if eligible." data-inital-sets="HRDFlooding" data-app-state="active-screen" data-parcel-id="none" data-api-stored-datasets="{}" data-api-active-datasets="none" data-active-section="about this property" data-active-sets="HRDFlooding" data-app-mode="single-app" data-initial-map-available="false" data-map-available="false" data-map-active-data=""><p class="no-wc">Please turn on javascript to use this feature. Thanks!</p></my-home-info><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/main.js"></script><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/runtime.js"></script><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/vendors.babel.js"></script><script src="https://www.unpkg.com/cod-design-system@1.0.18/build/assets/js/vendors.maplibre-gl.js"></script><script src="index.js"></script></body></html>
8 changes: 4 additions & 4 deletions src/components/Display.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,22 +204,22 @@ export default class Display extends HTMLElement {

buildHRDFlooding(values) {
let validNeighborhoods = ['Cornerstone Village', 'Morningside', 'Chandler Park', 'Fox Creek', 'Riverbend', 'Morningside', 'West End ', 'Midwest', 'Chadsey‐Condon', 'Claytown', 'North Corktown', 'Michigan‐ Martin', 'Aviation Sub', 'Garden View', 'Plymouth‐I96', 'Plymouth‐Hubell', 'Paveway', 'We Care Community', 'Fiskhorn', 'Joy-Schaefer', 'Warrendale', 'Warren Ave Community', 'Barton-McFarland'];
let dataParsing = { title: "CDBG Disaster Recovery Basement Backup Protection Program", content: null };
let dataParsing = { title: "CDBG-DR Private Sewer Repair Program", content: null };
if (values && values.data.attributes.neighborhood_name) {
if (validNeighborhoods.includes(values.data.attributes.neighborhood_name)) {
dataParsing.content = `
<p>This property qualifies for the CDBG Disaster Recovery Basement Backup Protection Program.</p>
<p>This property qualifies for the CDBG-DR Private Sewer Repair Program.</p>
<br>
<cod-button data-label="Apply Now" data-background-color="primary" data-size="xsmall" data-icon="" data-primary="true" data-img-alt="" data-link="https://app.smartsheet.com/b/form/3dab24dc95bf469b8ac4c27669536507"></cod-button>
`;
}else{
dataParsing.content = `
<p>This property doesn’t qualify for the CDBG Disaster Recovery Basement Backup Protection Program. To learn more please <a href="https://detroitmi.gov/departments/housing-and-revitalization-department/disaster-recovery">visit our page.</a></p>
<p>This property doesn’t qualify for the CDBG-DR Private Sewer Repair Program. To learn more please <a href="https://detroitmi.gov/departments/housing-and-revitalization-department/disaster-recovery">visit our page.</a></p>
`;
}
} else {
dataParsing.content = `
<p>This property doesn’t qualify for the CDBG Disaster Recovery Basement Backup Protection Program. To learn more please <a href="https://detroitmi.gov/departments/housing-and-revitalization-department/disaster-recovery">visit our page.</a></p>
<p>This property doesn’t qualify for the CDBG-DR Private Sewer Repair Program. To learn more please <a href="https://detroitmi.gov/departments/housing-and-revitalization-department/disaster-recovery">visit our page.</a></p>
`;
}
return dataParsing;
Expand Down

0 comments on commit d97c0df

Please sign in to comment.