Skip to content

Commit

Permalink
Fix watchlist tables
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Mar 15, 2024
1 parent a49a4ab commit e0073db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/routes/(app)/analytics/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
'folder',
'eta',
'expiry_date'
])
]),
meta: data.measures
};
const riskAcceptanceWatchlistTable: TableSource = {
Expand All @@ -74,13 +75,14 @@
risk_scenarios: 'riskScenarios',
expiry_date: 'expiryDate'
},
body: tableSourceMapper(data.acceptances_to_review, ['name', 'risk_scenarios', 'expiry_date'])
body: tableSourceMapper(data.acceptances_to_review, ['name', 'risk_scenarios', 'expiry_date']),
meta: data.acceptances_to_review
};
let tabSet = $page.url.searchParams.get('tab') ? parseInt($page.url.searchParams.get('tab')) : 0;
$: if (browser) {
$page.url.searchParams.set('tab', tabSet.toString());
tabSet !== 0 ? $page.url.searchParams.set('tab', tabSet.toString()) : null;
goto($page.url);
}
</script>
Expand Down Expand Up @@ -208,6 +210,7 @@
<span class="text-md font-semibold">{m.measuresToReview()}</span>
<ModelTable
source={appliedControlWatchlistTable}
URLModel="applied-controls"
search={false}
rowsPerPage={false}
/>
Expand All @@ -216,6 +219,7 @@
<span class="text-md font-semibold">{m.exceptionsToReview()}</span>
<ModelTable
source={riskAcceptanceWatchlistTable}
URLModel="risk-acceptances"
search={false}
rowsPerPage={false}
/>
Expand Down

0 comments on commit e0073db

Please sign in to comment.