mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Place omitted on a separate line
This commit is contained in:
@@ -390,10 +390,11 @@ async function renderDetailsContent(detailsContent) {
|
|||||||
const profile = extension_settings.connectionManager.profiles.find(p => p.id === selectedProfile);
|
const profile = extension_settings.connectionManager.profiles.find(p => p.id === selectedProfile);
|
||||||
if (profile) {
|
if (profile) {
|
||||||
const profileForDisplay = makeFancyProfile(profile);
|
const profileForDisplay = makeFancyProfile(profile);
|
||||||
|
const templateParams = { profile: profileForDisplay };
|
||||||
if (Array.isArray(profile.exclude) && profile.exclude.length > 0) {
|
if (Array.isArray(profile.exclude) && profile.exclude.length > 0) {
|
||||||
profileForDisplay['Omitted Settings'] = profile.exclude.map(e => FANCY_NAMES[e]).join(', ');
|
templateParams.omitted = profile.exclude.map(e => FANCY_NAMES[e]).join(', ');
|
||||||
}
|
}
|
||||||
const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', { profile: profileForDisplay });
|
const template = await renderExtensionTemplateAsync(MODULE_NAME, 'view', templateParams);
|
||||||
detailsContent.innerHTML = template;
|
detailsContent.innerHTML = template;
|
||||||
} else {
|
} else {
|
||||||
detailsContent.textContent = 'No profile selected';
|
detailsContent.textContent = 'No profile selected';
|
||||||
|
@@ -3,3 +3,8 @@
|
|||||||
<li><strong data-i18n="{{@key}}">{{@key}}:</strong> {{this}}</li>
|
<li><strong data-i18n="{{@key}}">{{@key}}:</strong> {{this}}</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{#if omitted}}
|
||||||
|
<div class="marginTop5">
|
||||||
|
<strong data-i18n="Omitted Settings:">Omitted Settings:</strong> <span>{{omitted}}</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user