fixed issues found during demo

MOHEMM-Q3-DEV-LATEST
umasoodch 5 years ago
parent df47d4d2ed
commit c9dce385dd

@ -42,7 +42,7 @@
"input": "src/app/app.scss"
}
],
"scripts": [],
"scripts": ["node_modules/chart.js/dist/Chart.js"],
"es5BrowserSupport": true
},
"configurations": {

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="hmg.cloudSolutions.mohem" version="2.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="hmg.cloudSolutions.mohem" version="3.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>MOHEMM</name>
<description>an app created by cloud Solutions</description>
<author email="eservicescs@cloudsolution-sa.com" href="http://cloudsolution-sa.com">Cloud Solutions</author>

@ -105,6 +105,7 @@
"ng2-file-upload": "^1.3.0",
"ng2-pdf-viewer": "^5.3.2",
"ngx-gauge": "^1.0.0-beta.10",
"npm": "^6.14.11",
"phonegap-nfc": "^1.2.0",
"phonegap-plugin-barcodescanner": "^8.1.0",
"phonegap-plugin-multidex": "^1.0.0",

@ -222,6 +222,27 @@ export class HomeComponent implements OnInit {
assignDataToFilters() {
this.filters[0].value = this.worklistNotifications.P_OPEN_NTF_NUMBER;
this.filters[1].value = this.totalHR;
this.filters[2].value = this.totalPO;
this.filters[3].value = this.totalPR;
this.filters[4].value = this.totalMR;
if (this.totalHR === 0) {
this.data.datasets[0].data[0] = 0;
}
if (this.totalPO === 0) {
this.data.datasets[0].data[1] = 0;
}
if (this.totalPR === 0) {
this.data.datasets[0].data[2] = 0;
}
if (this.totalMR === 0) {
this.data.datasets[0].data[3] = 0;
}
const openNotificationsArray = this.worklistNotifications.GetOpenNotificationsList;
for (const notification of openNotificationsArray) {

Loading…
Cancel
Save