From 839f752a58d34c915e982e6f9c2a0e3034eaa4ac Mon Sep 17 00:00:00 2001 From: umasoodch Date: Sun, 7 Feb 2021 15:24:08 +0300 Subject: [PATCH] fixed wifi check --- Mohem/package.json | 4 +++- .../home/attendance-options/attendance-options.component.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Mohem/package.json b/Mohem/package.json index 1b98df74..04862f1d 100755 --- a/Mohem/package.json +++ b/Mohem/package.json @@ -93,11 +93,13 @@ "cordova-plugin-statusbar": "^2.4.3", "cordova-plugin-themeablebrowser": "^0.2.18", "cordova-plugin-whitelist": "^1.3.4", + "cordova-plugin-wifiwizard2": "^3.1.1", "cordova-sqlite-storage": "^3.4.0", "cordova-support-google-services": "^1.3.2", "cordova.plugins.diagnostic": "^5.0.1", "core-js": "^2.5.4", "date-fns": "^1.30.1", + "es6-promise-plugin": "^4.1.0", "ionic2-calendar": "^0.5.8", "ng-circle-progress": "^1.5.1", "ng2-file-upload": "^1.3.0", @@ -218,4 +220,4 @@ "ios" ] } -} \ No newline at end of file +} diff --git a/Mohem/src/app/home/attendance-options/attendance-options.component.ts b/Mohem/src/app/home/attendance-options/attendance-options.component.ts index f517f3e5..6de60b72 100644 --- a/Mohem/src/app/home/attendance-options/attendance-options.component.ts +++ b/Mohem/src/app/home/attendance-options/attendance-options.component.ts @@ -100,9 +100,11 @@ export class AttendanceOptionsComponent implements OnInit { } if ( servicePrivilage.Previlege && - servicePrivilage.ServiceName === "enableWifi" + servicePrivilage.ServiceName === "enableWIFI" ) { this.serviceEnableWifi = true; + } else { + this.serviceEnableWifi = true; } } }