ptut-vhost/webpack/data/ue.js

17 lines
369 B
JavaScript
Raw Permalink Normal View History

2018-03-05 18:39:56 +00:00
/* (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;
});