export and use already defined LoraInfoDialog

This commit is contained in:
qrtal
2024-01-08 03:52:41 -05:00
parent 75892eb461
commit 256aa16ade
2 changed files with 2 additions and 18 deletions
+1 -17
View File
@@ -4,6 +4,7 @@ import { api } from "../../../../scripts/api.js";
import { $el, ComfyDialog } from "../../../../scripts/ui.js"; import { $el, ComfyDialog } from "../../../../scripts/ui.js";
import { TextAreaAutoComplete } from "./common/autocomplete.js"; import { TextAreaAutoComplete } from "./common/autocomplete.js";
import { ModelInfoDialog } from "./common/modelInfoDialog.js"; import { ModelInfoDialog } from "./common/modelInfoDialog.js";
import { LoraInfoDialog } from "./modelInfo.js";
function parseCSV(csvText) { function parseCSV(csvText) {
const rows = []; 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 { class CustomWordsDialog extends ComfyDialog {
async show() { async show() {
const text = await getCustomWords(); const text = await getCustomWords();
+1 -1
View File
@@ -4,7 +4,7 @@ import { ModelInfoDialog } from "./common/modelInfoDialog.js";
const MAX_TAGS = 500; const MAX_TAGS = 500;
class LoraInfoDialog extends ModelInfoDialog { export class LoraInfoDialog extends ModelInfoDialog {
getTagFrequency() { getTagFrequency() {
if (!this.metadata.ss_tag_frequency) return []; if (!this.metadata.ss_tag_frequency) return [];