Place omitted on a separate line

bb82198496ecedaa0f285adcfde4e2f1879e2634

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

2 files changed, +8 -2Showing whitespace changes
public/scripts/extensions/connection-manager/index.js+3 -2
@@ -390,10 +390,11 @@ async function renderDetailsContent(detailsContent) {
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';
public/scripts/extensions/connection-manager/view.html+5 -0
@@ -3,3 +3,8 @@
3 <li><strong data-i18n="{{@key}}">{{@key}}:</strong>&nbsp;{{this}}</li>3 <li><strong data-i18n="{{@key}}">{{@key}}:</strong>&nbsp;{{this}}</li>
4 {{/each}}4 {{/each}}
5</ul>5</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}}