print message if clipspace content cannot editable

This commit is contained in:
Dr.Lt.Data 2023-04-29 15:02:14 +09:00
parent 9d332bec0e
commit b7a1fbcbbe

View File

@ -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();
}
}