Parse integer (#1988)

This commit is contained in:
Christophe Maudoux 2019-10-27 17:15:48 +01:00
parent ef08306906
commit 85b9095f7e
4 changed files with 12 additions and 2 deletions

View File

@ -592,6 +592,10 @@ llapp.controller 'TreeCtrl', [
if a.template
a._nodes = templates a.template, a.title
node.nodes.push a
if a.type.match /^rule$/
console.log "Parse rule AuthnLevel as integer"
if a.level and typeof a.level == 'string'
a.level = parseInt(a.level, 10)
d.resolve 'OK'
$scope.waiting = false
, (response) ->

View File

@ -739,6 +739,12 @@ This file contains:
a._nodes = templates(a.template, a.title);
}
node.nodes.push(a);
if (a.type.match(/^rule$/)) {
console.log("Parse rule AuthnLevel as integer");
if (a.level && typeof a.level === 'string') {
a.level = parseInt(a.level, 10);
}
}
}
d.resolve('OK');
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long