mirror of
https://github.com/rifts-obsidian-laboratory/anki-integration.git
synced 2026-07-22 05:42:50 +00:00
Patch - Displaying error message successfully (Issue #7 complement)
This commit is contained in:
parent
610a85fd3e
commit
167c8e9545
1 changed files with 3 additions and 2 deletions
|
|
@ -205,17 +205,18 @@ export class AddNoteFromMetadataModal extends Modal {
|
|||
* @param {string} value - The selected model name.
|
||||
*/
|
||||
modelSelector.onChange(async (value) => {
|
||||
// console.log(yaml);
|
||||
this.AddFieldsGroupsToModal(inputContainer, value, yaml);
|
||||
});
|
||||
|
||||
/**
|
||||
* @description If yaml isn't null, trigger the autofill functions.
|
||||
* @description If yaml isn't null, trigger the autofill functions. Else, display the "Select a model [...]" message.
|
||||
*/
|
||||
if (yaml != null) {
|
||||
AutoAssignDeck(deckSelector, yaml);
|
||||
AutoAssignModel(modelSelector, yaml);
|
||||
AutoGenerateFields(this, modelSelector, inputContainer, yaml);
|
||||
} else {
|
||||
AddParagraph(inputContainer, "Select a model to see its fields.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue