export and use already defined LoraInfoDialog
This commit is contained in:
+1
-17
@@ -4,6 +4,7 @@ import { api } from "../../../../scripts/api.js";
|
||||
import { $el, ComfyDialog } from "../../../../scripts/ui.js";
|
||||
import { TextAreaAutoComplete } from "./common/autocomplete.js";
|
||||
import { ModelInfoDialog } from "./common/modelInfoDialog.js";
|
||||
import { LoraInfoDialog } from "./modelInfo.js";
|
||||
|
||||
function parseCSV(csvText) {
|
||||
const rows = [];
|
||||
@@ -143,23 +144,6 @@ class EmbeddingInfoDialog extends ModelInfoDialog {
|
||||
}
|
||||
}
|
||||
|
||||
class LoraInfoDialog extends ModelInfoDialog {
|
||||
async addInfo() {
|
||||
super.addInfo();
|
||||
const info = await this.addCivitaiInfo();
|
||||
if (info) {
|
||||
$el("div", {
|
||||
parent: this.content,
|
||||
innerHTML: info.description,
|
||||
style: {
|
||||
maxHeight: "250px",
|
||||
overflow: "auto",
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class CustomWordsDialog extends ComfyDialog {
|
||||
async show() {
|
||||
const text = await getCustomWords();
|
||||
|
||||
Reference in New Issue
Block a user