Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 457abe8b

Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)

re #12: Node search highlights Nodes excluded to Sidebar too

Zobrazit rozdíly:

sources/src/main/webapp/css/components/sidebar.css
167 167
	display: none;
168 168
}
169 169

  
170
.sidebar .node--found .vertex-name {
171
	background-color: orange;
172
}
173

  
170 174
.sidebar .node--highlighted .vertex-name {
171 175
	line-height: 56px;
172 176
	padding: 0 5px;
sources/src/main/webapp/js/components/navbar.js
138 138

  
139 139
			let found = 0;
140 140
			
141
			let nodeList = app.viewportComponent.nodeList;
141
			let nodeList = app.nodeList;
142 142
			nodeList.forEach(node => {
143 143
				if (node.name.toLowerCase().includes(term.toLowerCase())) {
144 144
					node.isFound = true;
......
152 152
		}
153 153

  
154 154
		function resetSearch() {
155
			let nodeList = app.viewportComponent.nodeList;
155
			let nodeList = app.nodeList;
156 156
			nodeList.forEach(node => {
157 157
				node.isFound = false;
158 158
			});
sources/src/main/webapp/js/components/node.js
151 151
	set isFound(newValue) {
152 152
		this._isFound = newValue;
153 153

  
154
		if (this.isExcluded) return;
155
		
156 154
		if (newValue) {
157 155
			this._rootElement.classList.add('node--found');
158 156
		} else {

Také k dispozici: Unified diff