Open node in form and map.

This commit is contained in:
baldo 2016-06-07 14:08:04 +02:00
parent 5b9d2e615b
commit 03083b819b
12 changed files with 80 additions and 19 deletions
server/services

View file

@ -212,7 +212,10 @@ angular.module('ffffng')
}
_.each(entries, function (value, key) {
if (key === 'monitoring') {
if (key === 'mac') {
node['mac'] = value;
node['mapId'] = _.toLower(value).replace(/:/g, '')
} else if (key === 'monitoring') {
var active = value === 'aktiv';
var pending = value === 'pending';
node.monitoring = active || pending;