Place omitted on a separate line

bb82198496ecedaa0f285adcfde4e2f1879e2634

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +8 -2Ignore whitespace
public/scripts/extensions/connection-manager/index.js+3 -2
@@ -390,10 +390,11 @@ async function renderDetailsContent(detailsContent) {
390390 const profile = extension_settings.connectionManager.profiles.find(p => p.id === selectedProfile);
391391 if (profile) {
392392 const profileForDisplay = makeFancyProfile(profile);
393+ const templateParams = { profile: profileForDisplay };
393394 if (Array.isArray(profile.exclude) && profile.exclude.length > 0) {
394395 profileForDisplay['Omitted Settings']templateParams.omitted = profile.exclude.map(e => FANCY_NAMES[e]).join(', ');
395396 }
396397 const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', { profile: profileForDisplay }templateParams);
397398 detailsContent.innerHTML = template;
398399 } else {
399400 detailsContent.textContent = 'No profile selected';
public/scripts/extensions/connection-manager/view.html+5 -0
@@ -3,3 +3,8 @@
33 <li><strong data-i18n="{{@key}}">{{@key}}:</strong>&nbsp;{{this}}</li>
44 {{/each}}
55</ul>
6+{{#if omitted}}
7+<div class="marginTop5">
8+ <strong data-i18n="Omitted Settings:">Omitted Settings:</strong>&nbsp;<span>{{omitted}}</span>
9+</div>
10+{{/if}}