17 lines
369 B
JavaScript
17 lines
369 B
JavaScript
/* (1) Load UEs
|
|
---------------------------------------------------------*/
|
|
/* (1) Initialize list */
|
|
gstore.add('ues', []);
|
|
|
|
/* (2) Get UEs */
|
|
api.call('GET ue', { vh: true }, function(rs) {
|
|
|
|
// {1} If error -> abort //
|
|
if(rs.error !== 0)
|
|
return console.log('No UE found, error: ' + rs.error);
|
|
|
|
// {2} Store UEs //
|
|
console.log(rs);
|
|
gstore.get.ues = rs.ues;
|
|
});
|