|
|
@ -50,9 +50,13 @@ function onRequest(context) {
|
|
|
|
if (filteredDeviceData["enrolmentInfo"]["status"]) {
|
|
|
|
if (filteredDeviceData["enrolmentInfo"]["status"]) {
|
|
|
|
viewModel["status"] = filteredDeviceData["enrolmentInfo"]["status"];
|
|
|
|
viewModel["status"] = filteredDeviceData["enrolmentInfo"]["status"];
|
|
|
|
viewModel.isActive = false ;
|
|
|
|
viewModel.isActive = false ;
|
|
|
|
|
|
|
|
viewModel.isNotRemoved = true;
|
|
|
|
if (filteredDeviceData["enrolmentInfo"]["status"]== "ACTIVE") {
|
|
|
|
if (filteredDeviceData["enrolmentInfo"]["status"]== "ACTIVE") {
|
|
|
|
viewModel.isActive = true ;
|
|
|
|
viewModel.isActive = true ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (filteredDeviceData["enrolmentInfo"]["status"]== "REMOVED") {
|
|
|
|
|
|
|
|
viewModel.isNotRemoved = false ;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (filteredDeviceData["enrolmentInfo"]["owner"]) {
|
|
|
|
if (filteredDeviceData["enrolmentInfo"]["owner"]) {
|
|
|
|
viewModel["owner"] = filteredDeviceData["enrolmentInfo"]["owner"];
|
|
|
|
viewModel["owner"] = filteredDeviceData["enrolmentInfo"]["owner"];
|
|
|
|