mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 13:02:31 +08:00
print message if clipspace content cannot editable
This commit is contained in:
parent
9d332bec0e
commit
b7a1fbcbbe
@ -35,7 +35,6 @@ export class ClipspaceDialog extends ComfyDialog {
|
||||
// allow reconstruct controls when copying from non-image to image content.
|
||||
const children = $el("div.comfy-modal-content",[
|
||||
self.createImgSettings(),
|
||||
// self.createImgPreview(),
|
||||
...self.createButtons()
|
||||
]);
|
||||
|
||||
@ -49,6 +48,10 @@ export class ClipspaceDialog extends ComfyDialog {
|
||||
self.element = $el("div.comfy-modal", { parent: document.body }, [children,]);
|
||||
}
|
||||
|
||||
if(self.element.children[0].children.length <= 1) {
|
||||
self.element.children[0].appendChild($el("p", {}, ["Unable to find the features to edit content of a format stored in the current Clipspace."]));
|
||||
}
|
||||
|
||||
ClipspaceDialog.invalidatePreview();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user