Skip to content

Commit

Permalink
Improve RO/TO navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 20, 2024
1 parent 993f866 commit 80ff07b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { BASE_API_URL } from '$lib/utils/constants';
import { listViewFields } from '$lib/utils/table';
import { tableSourceMapper, type TableSource } from '@skeletonlabs/skeleton';
import { getModelInfo } from '$lib/utils/crud';
import { safeTranslate } from '$lib/utils/i18n';

export const load: PageServerLoad = async (event) => {
const URLModel = 'ro-to';
Expand Down Expand Up @@ -33,5 +34,5 @@ export const load: PageServerLoad = async (event) => {
meta: revData
};

return { data, table };
return { data, table, title: `${safeTranslate(data.risk_origin)} / ${data.target_objective}` };
};
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@
<div class="card p-4 bg-white shadow-lg">
<div class="flex flex-col space-y-4">
<div class="flex justify-between">
<a
<Anchor
href="/ebios-rm/{roto.ebios_rm_study.id}"
label={roto.ebios_rm_study.str}
class="flex items-center space-x-2 text-primary-800 hover:text-primary-600"
>
<i class="fa-solid fa-arrow-left" />
<p class="">{m.goBackToEbiosRmStudy()}</p>
</a>
</Anchor>
<Anchor
href={`${$page.url.pathname}/edit?activity=${activeActivity}&next=${$page.url.pathname}?activity=${activeActivity}`}
class="btn variant-filled-primary h-fit"
Expand Down

0 comments on commit 80ff07b

Please sign in to comment.