fix: share selected opportunity across simulator stages and land shortcuts
This commit is contained in:
@@ -1564,7 +1564,7 @@ export function SimulationForm() {
|
||||
'Não foi possível devolver as entradas financeiras guardadas ao dossier.',
|
||||
);
|
||||
}
|
||||
window.location.assign(`/investimentos/${contextId}`);
|
||||
window.location.assign(`/investimentos/${contextId}${draft.context_opportunity ? "?opportunity="+encodeURIComponent(String(draft.context_opportunity)) : ""}`);
|
||||
} catch (cause) {
|
||||
setContinuityError(
|
||||
cause instanceof Error
|
||||
@@ -2522,7 +2522,7 @@ export function SimulationForm() {
|
||||
)}
|
||||
<a
|
||||
className="ml-3 underline"
|
||||
href={`/investimentos/${contextId}`}
|
||||
href={`/investimentos/${contextId}${draft.context_opportunity ? "?opportunity="+encodeURIComponent(String(draft.context_opportunity)) : ""}`}
|
||||
>
|
||||
Ver dossier
|
||||
</a>
|
||||
@@ -3292,7 +3292,7 @@ export function SimulationForm() {
|
||||
: investmentLandPreparation(draft.context_applicability_snapshot).need === 'yes'
|
||||
? 'Precisa de terra neste investimento. Reveja a situação do terreno já preenchida ou indique-a quando disponível.'
|
||||
: 'Falta definir se precisa de terra. Pode guardar o rascunho e continuar sem preencher a situação do terreno.'}</p>
|
||||
<a className="underline" href={`/investimentos/${contextId}`}>Rever a necessidade de terra no dossier</a>
|
||||
<a className="underline" href={`/investimentos/${contextId}${draft.context_opportunity ? "?opportunity="+encodeURIComponent(String(draft.context_opportunity)) : ""}`}>Rever a necessidade de terra no dossier</a>
|
||||
</aside>
|
||||
)}
|
||||
<div className="grid gap-4 sm:grid-cols-2">
|
||||
|
||||
Reference in New Issue
Block a user