mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 19:45:35 +01:00
add unresolved note
This commit is contained in:
parent
0eecc2dd4c
commit
3a60b45253
@ -820,7 +820,10 @@ export class QuickReply {
|
||||
const vResolved = document.createElement('div'); {
|
||||
vResolved.classList.add('qr--val');
|
||||
vResolved.classList.add('qr--singleCol');
|
||||
const val = this.debugController.namedArguments[key];
|
||||
if (this.debugController.namedArguments === undefined) {
|
||||
vResolved.classList.add('qr--unresolved');
|
||||
} else {
|
||||
const val = this.debugController.namedArguments?.[key];
|
||||
if (val instanceof SlashCommandClosure) {
|
||||
vResolved.classList.add('qr--closure');
|
||||
vResolved.title = val.rawText;
|
||||
@ -838,6 +841,7 @@ export class QuickReply {
|
||||
vResolved.classList.add('qr--simple');
|
||||
}
|
||||
}
|
||||
}
|
||||
item.append(vResolved);
|
||||
}
|
||||
wrap.append(item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user