Skip to content

Commit

Permalink
Bugfix for Verkeerde link bij link-nudge scherm
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 11, 2023
1 parent a808f6c commit ebc2e1c
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions myconext-gui/src/routes/Start.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@
import getApp from "../icons/redesign/undraw_Mobile_app_re_catg 1.svg";
import Button from "../components/Button.svelte";
import {isEmpty} from "../utils/utils";
import {startLinkAccountFlow} from "../api";
import Modal from "../components/Modal.svelte";
let showModal = false;
const addInstitution = showConfirmation => {
if (showConfirmation) {
showModal = true
} else {
startLinkAccountFlow().then(json => {
window.location.href = json.url;
});
}
}
</script>

<style lang="scss">
Expand Down Expand Up @@ -69,7 +85,7 @@
}
}
.info-section, {
.info-section {
@media (max-width: 820px) {
width: 100%;
}
Expand Down Expand Up @@ -162,7 +178,7 @@
<div class="action">
<Button label={I18n.t("start.app.connect")}
xxl={true}
onClick={() => navigate("/get-app")}/>
onClick={() => addInstitution(true)}/>
</div>
</div>
</div>
Expand All @@ -189,4 +205,12 @@

</div>

</div>
</div>
{#if showModal}
<Modal submit={() => addInstitution(false)}
cancel={() => showModal = false}
question={I18n.t(`profile.verifyFirstAndLastName.addInstitutionConfirmation`)}
title={I18n.t(`profile.verifyFirstAndLastName.addInstitution`)}
confirmTitle={I18n.t("profile.proceed")}>
</Modal>
{/if}

0 comments on commit ebc2e1c

Please sign in to comment.