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 { $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
@@ -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 [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user