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