Show remote peer name in client title
This commit is contained in:
parent
5dc06023be
commit
b595301520
|
@ -525,13 +525,22 @@ const SourceText = ({ dgo, pai, state, selected }) => r(React.Fragment, [
|
||||||
r(DebugText, { dgo, pai, state }),
|
r(DebugText, { dgo, pai, state }),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const ClientText = ({ dgo, pai, state }) => r(React.Fragment, [
|
const ClientText = ({ dgo, pai, state }) => {
|
||||||
|
let title = path('properties.application.process.binary'.split('.'), pai);
|
||||||
|
|
||||||
|
const module = state.infos.modules[pai.moduleIndex];
|
||||||
|
if (module && module.name === 'module-native-protocol-tcp') {
|
||||||
|
title = path([ 'properties', 'native-protocol', 'peer' ], pai) || title;
|
||||||
|
}
|
||||||
|
|
||||||
|
return r(React.Fragment, [
|
||||||
r.div({
|
r.div({
|
||||||
className: 'node-name',
|
className: 'node-name',
|
||||||
title: path('properties.application.process.binary'.split('.'), pai),
|
title,
|
||||||
}, pai.name),
|
}, pai.name),
|
||||||
r(DebugText, { dgo, pai, state }),
|
r(DebugText, { dgo, pai, state }),
|
||||||
]);
|
]);
|
||||||
|
};
|
||||||
|
|
||||||
const ModuleText = ({ dgo, pai, state }) => r(React.Fragment, [
|
const ModuleText = ({ dgo, pai, state }) => r(React.Fragment, [
|
||||||
r.div({
|
r.div({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user