Skip to content

Commit a68a35c

Browse files
committed
slight modification - the TB Prevention link comes first followed by TB Treatment
1 parent 8397b2c commit a68a35c

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

packages/esm-tb-app/src/dashboard.meta.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export const tbClinicalViewDashboardMeta = {
4444
isFolder: true,
4545
title: 'Tuberculosis',
4646
};
47+
export const tbPreventionDashboardMeta = {
48+
name: 'tb-prevention',
49+
slot: 'tb-prevention-dashboard-slot',
50+
config: { columns: 1, type: 'grid', programme: 'tpt', dashboardTitle: 'TB Prevention'},
51+
title: 'TB Prevention',
52+
};
4753

4854
export const tbCasesDashboardMeta = {
4955
name: 'tb-cases',
@@ -52,13 +58,6 @@ export const tbCasesDashboardMeta = {
5258
title: 'TB Treatment',
5359
};
5460

55-
export const tbPreventionDashboardMeta = {
56-
name: 'tb-prevention',
57-
slot: 'tb-prevention-dashboard-slot',
58-
config: { columns: 1, type: 'grid', programme: 'tpt', dashboardTitle: 'TB Prevention'},
59-
title: 'TB Prevention',
60-
};
61-
6261
export const tptPatientChartMeta = {
6362
title: 'TPT Program',
6463
slotName: 'ohri-tpt-slot',

packages/esm-tb-app/src/routes.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,37 @@
152152
"title": "Tuberculosis"
153153
}
154154
},
155+
{
156+
"name": "tb-prevention-dashboard-ext",
157+
"slot": "tb-clinical-dashboard-slot",
158+
"component": "tbPreventionDashboardLink",
159+
"meta": {
160+
"name": "tb-prevention",
161+
"slot": "tb-prevention-dashboard-slot",
162+
"config": {
163+
"columns": 1,
164+
"type": "grid",
165+
"programme": "tpt",
166+
"dashboardTitle": "TB Prevention"
167+
},
168+
"title": "TB Prevention"
169+
}
170+
},
171+
{
172+
"name": "tb-prevention-dashboard",
173+
"slot": "tb-prevention-dashboard-slot",
174+
"component": "tbPreventionDashboard",
175+
"meta": {
176+
"name": "tb-prevention",
177+
"slot": "tb-prevention-dashboard-slot",
178+
"config": {
179+
"columns": 1,
180+
"programme": "tpt",
181+
"dashboardTitle": "TB Prevention"
182+
},
183+
"title": "TB Prevention"
184+
}
185+
},
155186
{
156187
"name": "tb-cases-dashboard-ext",
157188
"slot": "tb-clinical-dashboard-slot",
@@ -198,37 +229,6 @@
198229
"slot": "tb-home-tabs-slot",
199230
"component": "tbDashboardTabs"
200231
},
201-
{
202-
"name": "tb-prevention-dashboard-ext",
203-
"slot": "tb-clinical-dashboard-slot",
204-
"component": "tbPreventionDashboardLink",
205-
"meta": {
206-
"name": "tb-prevention",
207-
"slot": "tb-prevention-dashboard-slot",
208-
"config": {
209-
"columns": 1,
210-
"type": "grid",
211-
"programme": "tpt",
212-
"dashboardTitle": "TB Prevention"
213-
},
214-
"title": "TB Prevention"
215-
}
216-
},
217-
{
218-
"name": "tb-prevention-dashboard",
219-
"slot": "tb-prevention-dashboard-slot",
220-
"component": "tbPreventionDashboard",
221-
"meta": {
222-
"name": "tb-prevention",
223-
"slot": "tb-prevention-dashboard-slot",
224-
"config": {
225-
"columns": 1,
226-
"programme": "tpt",
227-
"dashboardTitle": "TB Prevention"
228-
},
229-
"title": "TB Prevention"
230-
}
231-
},
232232
{
233233
"name": "tpt-home-header-ext",
234234
"slot": "tpt-home-header-slot",

0 commit comments

Comments
 (0)