|
|
@@ -511,11 +511,20 @@ class NodeAttributeView {
|
|
|
}
|
|
|
const value = this._attribute.value;
|
|
|
switch (type) {
|
|
|
- case 'graph':
|
|
|
+ case 'graph': {
|
|
|
+ const line = this._host.document.createElement('div');
|
|
|
+ line.className = 'sidebar-view-item-value-line-link';
|
|
|
+ line.innerHTML = value.name;
|
|
|
+ line.addEventListener('click', () => {
|
|
|
+ this._raise('show-graph', value);
|
|
|
+ });
|
|
|
+ this._element.appendChild(line);
|
|
|
+ break;
|
|
|
+ }
|
|
|
case 'function': {
|
|
|
const line = this._host.document.createElement('div');
|
|
|
line.className = 'sidebar-view-item-value-line-link';
|
|
|
- line.innerHTML = value.type.name;
|
|
|
+ line.innerHTML = type === value.type.name;
|
|
|
line.addEventListener('click', () => {
|
|
|
this._raise('show-graph', value.type);
|
|
|
});
|