mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Show Included settings in view order
This commit is contained in:
@ -524,8 +524,9 @@ async function renderDetailsContent(detailsContent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let saveChanges = false;
|
let saveChanges = false;
|
||||||
|
const sortByViewOrder = (a, b) => Object.keys(FANCY_NAMES).indexOf(a) - Object.keys(FANCY_NAMES).indexOf(b);
|
||||||
const commands = profile.mode === 'cc' ? CC_COMMANDS : TC_COMMANDS;
|
const commands = profile.mode === 'cc' ? CC_COMMANDS : TC_COMMANDS;
|
||||||
const settings = commands.reduce((acc, command) => {
|
const settings = commands.slice().sort(sortByViewOrder).reduce((acc, command) => {
|
||||||
const fancyName = FANCY_NAMES[command];
|
const fancyName = FANCY_NAMES[command];
|
||||||
acc[fancyName] = !profile.exclude.includes(command);
|
acc[fancyName] = !profile.exclude.includes(command);
|
||||||
return acc;
|
return acc;
|
||||||
|
Reference in New Issue
Block a user