| 390 | 390 | const profile = extension_settings.connectionManager.profiles.find(p => p.id === selectedProfile); |
| 391 | 391 | if (profile) { |
| 392 | 392 | const profileForDisplay = makeFancyProfile(profile); |
| 393 | + const templateParams = { profile: profileForDisplay }; |
| 393 | 394 | if (Array.isArray(profile.exclude) && profile.exclude.length > 0) { |
| 394 | 395 | profileForDisplay['Omitted Settings']templateParams.omitted = profile.exclude.map(e => FANCY_NAMES[e]).join(', '); |
| 395 | 396 | } |
| 396 | 397 | const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', { profile: profileForDisplay }templateParams); |
| 397 | 398 | detailsContent.innerHTML = template; |
| 398 | 399 | } else { |
| 399 | 400 | detailsContent.textContent = 'No profile selected'; |