Skip to content

Commit

Permalink
fix: 🐛 reg. overlay after button click overlapped by stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Spielmann committed Oct 16, 2020
1 parent 2081d2e commit 8ce418b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/components/overlay/ts/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ export class Overlay extends React.Component<{
};

handleButtonClick(buttonFunction: string) {
const overlay = document.getElementById('overlay');
this.props.handleOverlay(buttonFunction);
if (
buttonFunction === OVERLAY_FUNCTIONS.CLOSE ||
buttonFunction === OVERLAY_FUNCTIONS.REDIRECT
(buttonFunction === OVERLAY_FUNCTIONS.REDIRECT &&
!overlay.classList.contains('overlay--keepBlur'))
) {
this.removeOverlayClasses();
}
Expand Down
1 change: 0 additions & 1 deletion src/components/registration/ts/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import {
AGENCY_FALLBACK_LINK,
getConsultingTypeFromRegistration,
isKreuzbundRegistration,
isOffenderRegistration,
isRehabilitationRegistration,
isU25Registration
} from '../../../resources/ts/helpers/resorts';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
class="app"
></main>

<div id="overlay"></div>
<div id="overlay" class="overlay--keepBlur"></div>
</body>
</html>
2 changes: 0 additions & 2 deletions src/resources/ts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ export const config = {
sessionAssign: tld + '/service/users/sessions',
passwordReset: tld + '/service/users/password/change',
getMonitoring: tld + '/service/users/sessions',
registrationOffenderRedirect:
'/registration.straffaelligkeit.html?aid=',
registrationRehabilitationRedirect:
'/registration.kinder-reha.html?aid=',
registrationKreuzbundRedirect:
Expand Down
3 changes: 0 additions & 3 deletions src/resources/ts/helpers/resorts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export const getConsultingTypeFromRegistration = () => {

export const isU25Registration = () =>
getConsultingTypeFromRegistration() === 1;
export const isOffenderRegistration = () =>
getConsultingTypeFromRegistration() === 11;
export const isRehabilitationRegistration = () =>
getConsultingTypeFromRegistration() === 13;
export const isKreuzbundRegistration = () =>
Expand Down Expand Up @@ -81,7 +79,6 @@ export const POSTCODE_FALLBACK_LINK = {
};

export const AGENCY_FALLBACK_LINK = {
11: config.endpoints.registrationOffenderRedirect,
13: config.endpoints.registrationRehabilitationRedirect,
15: config.endpoints.registrationKreuzbundRedirect
};

0 comments on commit 8ce418b

Please sign in to comment.