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