X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fmonitoring%2Fmonitor.js;h=4bc04fd6b3553a05873877cbb3f51fa0c9244178;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=1bdfcb4398294f07021dc6e22450758c0a0365ea;hpb=4521c1e7ae5371ab9d639adc617d17fb4e8ded0c;p=src%2Fapp-framework-binder.git diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js index 1bdfcb43..4bc04fd6 100644 --- a/test/monitoring/monitor.js +++ b/test/monitoring/monitor.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017, 2018 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -291,7 +291,7 @@ function on_got_apis(obj) { name: api_name }; api.node.API = api; - api.node.dataset.api = api_name; + api.node.dataset.apiname = api_name; api.vnode = get(".verbs", api.node); get(".name", api.node).textContent = api_name; var s = get(".verbosity select", api.node); @@ -355,9 +355,9 @@ function update_trace_box(node) { function set_trace_box(node, clear) { var api = node; - while (api && !api.dataset.api) + while (api && !api.dataset.apiname) api = api.parentElement; - var tag = api.dataset.api + "/" + node.dataset.trace; + var tag = api.dataset.apiname + "/" + node.dataset.trace; var value = false; for_all_nodes(node, "input", function(n){ if (n.checked) value = n.value; }); if (clear) @@ -365,8 +365,8 @@ function set_trace_box(node, clear) { if (value != "no") { var spec = {tag: tag, name: "trace"}; spec[node.dataset.trace] = value; - if (api.dataset.api != "*") - spec.api = api.dataset.api; + if (api.dataset.apiname != "*") + spec.apiname = api.dataset.apiname; do_call("monitor/trace", {add: spec}); } }