add unresolved note

This commit is contained in:
LenAnderson 2024-06-24 07:29:20 -04:00
parent 0eecc2dd4c
commit 3a60b45253

View File

@ -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);