Skip to content

Commit

Permalink
default pagination = 40
Browse files Browse the repository at this point in the history
  • Loading branch information
benzerbett committed May 25, 2021
1 parent bb9b877 commit e5ba194
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
16 changes: 14 additions & 2 deletions config/endpoints/fp.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ let fp = [
name: 'Issues vs Receipts',
id: 'county__issues_vs_receipts',
local_url: `${APP_BASE_URL}/api/county/issuesvsreceipts`,
url: `${DHIS_BASE_API_URL}/analytics.json?dimension=dx:jfUzb86mBSP.DTnItSklSr8;HwvUHnslwbh.DTnItSklSr8;OLYLVMDHEj8.DTnItSklSr8;UJeKVZzAnfS.DTnItSklSr8;naztfZrbMtd.DTnItSklSr8;EtG9ozt2joA.DTnItSklSr8;Umi8ZsiqBHw.DTnItSklSr8;BnGDrFwyQp9.yuvCdaFqdCW;c0MB4RmVjxk.yuvCdaFqdCW;qnZmg5tNSMy.yuvCdaFqdCW;gVp1KSFI69G.yuvCdaFqdCW;iOARK31NdLp.yuvCdaFqdCW;imheYfA1Kiw.yuvCdaFqdCW;eFqDcjgvt39.EJ8nUfcupBq`,
url: `${DHIS_BASE_API_URL}/analytics.json?dimension=dx:hH9gmEmEhH4.VW51Ep3auXR;m1U1MJZoK9Q.DTnItSklSr8;bGGT0F7iRxt.VW51Ep3auXR;CxoGtEwF44m.DTnItSklSr8;qaBPR9wbWku.VW51Ep3auXR;nGR47qCgOfQ.DTnItSklSr8;AR7RhdC90IV.VW51Ep3auXR;RXJmB0afFhv.DTnItSklSr8;tfPZ6sGgh4q.VW51Ep3auXR;ri9reJBhA2Y.DTnItSklSr8;XgJfT71Unkn.VW51Ep3auXR;QZpWVTFZEE7.DTnItSklSr8;MsS41X1GEFr.VW51Ep3auXR;WLS1R40DxXt.DTnItSklSr8;J6qnTev1LXw.VW51Ep3auXR;CH3syaQ3wJ3.DTnItSklSr8;AVDzuypqGt9.VW51Ep3auXR;YSjqRqkkQdi.DTnItSklSr8;dl4JcBnxu0X.VW51Ep3auXR;uiU7PDbqn74.DTnItSklSr8;QKvDccYJ18W.VW51Ep3auXR;FyLIhJocwlR.DTnItSklSr8`,
default_period: 'LAST_3_MONTHS',
default_org_unit: 'HfVjCurKxh2',
default_org_unit_level: 1,
Expand Down Expand Up @@ -919,7 +919,19 @@ let fp = [
default_org_unit: 'HfVjCurKxh2',
default_org_unit_level: 5,
Notes: ''
}
},
{
page: 'Issues vs Receipts',
level: 'National',
name: 'Issues vs Receipts',
id: 'national__issues_vs_receipts',
local_url: `${APP_BASE_URL}/api/national/issuesvsreceipts`,
url: `${DHIS_BASE_API_URL}/analytics.json?dimension=dx:hH9gmEmEhH4.VW51Ep3auXR;m1U1MJZoK9Q.DTnItSklSr8;bGGT0F7iRxt.VW51Ep3auXR;CxoGtEwF44m.DTnItSklSr8;qaBPR9wbWku.VW51Ep3auXR;nGR47qCgOfQ.DTnItSklSr8;AR7RhdC90IV.VW51Ep3auXR;RXJmB0afFhv.DTnItSklSr8;tfPZ6sGgh4q.VW51Ep3auXR;ri9reJBhA2Y.DTnItSklSr8;XgJfT71Unkn.VW51Ep3auXR;QZpWVTFZEE7.DTnItSklSr8;MsS41X1GEFr.VW51Ep3auXR;WLS1R40DxXt.DTnItSklSr8;J6qnTev1LXw.VW51Ep3auXR;CH3syaQ3wJ3.DTnItSklSr8;AVDzuypqGt9.VW51Ep3auXR;YSjqRqkkQdi.DTnItSklSr8;dl4JcBnxu0X.VW51Ep3auXR;uiU7PDbqn74.DTnItSklSr8;QKvDccYJ18W.VW51Ep3auXR;FyLIhJocwlR.DTnItSklSr8`,
default_period: 'LAST_3_MONTHS',
default_org_unit: 'HfVjCurKxh2',
default_org_unit_level: '',
Notes: ''
}
];

module.exports = fp;
2 changes: 1 addition & 1 deletion public/manifest.webapp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta",
"version": "1.1.1-beta",
"name": "Health Commodities Dashboard - Beta",
"appType": "APP",
"description": "An App to Visualize Health Commodities data",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Table = props => {
data={rows}
columns={theads}
options={{
rowsPerPage: 10,
rowsPerPage: 40,
rowsPerPageOptions: [10,20,30,40,50],
selectableRows: false,
onDownload: (buildHead, buildBody, columns, data)=>{
Expand Down
2 changes: 1 addition & 1 deletion src/views/IssuesReceipts/IssuesReceipts.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const IssuesReceipts = props => {
new_filter_params.pe,
new_filter_params.ou,
new_filter_params.level,
url
endpoints[0][process.env.REACT_APP_ENV == "dev" ? "local_url" : "url"]
);
ftch(new_url);
}
Expand Down

0 comments on commit e5ba194

Please sign in to comment.