|  | 
| 136 | 136 | 			<div class="dialog-body"> | 
| 137 | 137 | 				<p><strong>نام:</strong> <span id="nodeName"></span></p> | 
| 138 | 138 | 				<p><strong>خط:</strong> <span id="nodeLines"></span></p> | 
|  | 139 | + | 
| 139 | 140 | 				<p> | 
| 140 | 141 | 					<strong>آدرس:</strong> | 
| 141 | 142 | 					<span class="no-select" id="nodeAddress"></span> | 
| 142 | 143 | 				</p> | 
|  | 144 | +				<p id="nodeEmojis"></p> | 
| 143 | 145 | 			</div> | 
| 144 | 146 | 		</div> | 
| 145 | 147 | 
 | 
|  | 
| 298 | 300 | 				const nodeNameElement = document.getElementById("nodeName"); | 
| 299 | 301 | 				const nodeAddressElement = document.getElementById("nodeAddress"); | 
| 300 | 302 | 				const nodeLinesElement = document.getElementById("nodeLines"); | 
|  | 303 | +				const nodeEmojisElement = document.getElementById("nodeEmojis"); | 
| 301 | 304 | 				const closeButton = document.getElementById("closeDialogBtn"); | 
| 302 | 305 | 
 | 
|  | 306 | +				const hasWC = node.data.wc || false; | 
|  | 307 | +				const WcEmoji = hasWC ? ' 🚾' : ''; | 
|  | 308 | + | 
|  | 309 | +				const hasFastfood = node.data.fastFood || false; | 
|  | 310 | +				const FastfoodEmoji = hasFastfood ? ' 🍔' : ''; | 
|  | 311 | + | 
|  | 312 | +				const hasGroceryStore = node.data.groceryStore || false; | 
|  | 313 | +				const GroceryStoreEmoji = hasGroceryStore ? ' 🛒' : ''; | 
|  | 314 | + | 
|  | 315 | +				const hasatm = node.data.atm || false; | 
|  | 316 | +				const atmEmoji = hasatm ? ' 🏧' : ''; | 
|  | 317 | + | 
|  | 318 | +				const hasCoffeeShop = node.data.coffeeShop || false; | 
|  | 319 | +				const CoffeeShopEmoji = hasCoffeeShop ? ' ☕' : ''; | 
|  | 320 | + | 
|  | 321 | + | 
| 303 | 322 | 				nodeNameElement.textContent = | 
| 304 |  | -					node.data.translations.fa || node.data.name; | 
|  | 323 | +					(node.data.translations.fa || node.data.name || '') ; | 
|  | 324 | + | 
| 305 | 325 | 				nodeLinesElement.innerHTML = node.data.lines | 
| 306 | 326 | 					.map( | 
| 307 | 327 | 						(line, i) => | 
|  | 
| 311 | 331 | 				nodeAddressElement.innerHTML = node.data.address | 
| 312 | 332 | 					? `${node.data.address}` | 
| 313 | 333 | 					: `به زودی ...`; | 
|  | 334 | + | 
|  | 335 | +				nodeEmojisElement.innerHTML = `${WcEmoji} ${FastfoodEmoji} ${GroceryStoreEmoji} ${atmEmoji} ${CoffeeShopEmoji}`; | 
| 314 | 336 | 				nodeAddressElement.style.fontSize = "13px"; | 
| 315 | 337 | 
 | 
| 316 | 338 | 				dialog.style.display = "block"; | 
|  | 
0 commit comments