mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 22:34:15 +00:00
Fix: Disabling textarea when linked. (#8818)
## Summary Misaligned option setting when building the SimplifiedWidget. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8818-Fix-Disabling-textarea-when-linked-3056d73d365081f581a9f1322aaf60bd) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -59,5 +59,7 @@ const filteredProps = computed(() =>
|
||||
const displayName = computed(() => widget.label || widget.name)
|
||||
const id = useId()
|
||||
|
||||
const isReadOnly = computed(() => widget.options?.read_only ?? false)
|
||||
const isReadOnly = computed(
|
||||
() => widget.options?.read_only ?? widget.options?.disabled ?? false
|
||||
)
|
||||
</script>
|
||||
|
||||
@@ -555,7 +555,7 @@ export class ComfyApp {
|
||||
try {
|
||||
workspace.spinner = true
|
||||
if (fileMaybe instanceof File) {
|
||||
await this.handleFile(fileMaybe, 'file_drop')
|
||||
await this.handleFile(fileMaybe, 'file_drop')
|
||||
}
|
||||
|
||||
if (fileMaybe instanceof FileList) {
|
||||
@@ -1575,7 +1575,6 @@ export class ComfyApp {
|
||||
this.showErrorOnFileLoad(file)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Loads multiple files, connects to a batch node, and selects them
|
||||
* @param {FileList} fileList
|
||||
@@ -1602,19 +1601,19 @@ export class ComfyApp {
|
||||
*/
|
||||
positionBatchNodes(nodes: LGraphNode[], batchNode: LGraphNode): void {
|
||||
const [x, y, width] = nodes[0].getBounding()
|
||||
batchNode.pos = [ x + width + 100, y + 30 ]
|
||||
batchNode.pos = [x + width + 100, y + 30]
|
||||
|
||||
// Retrieving Node Height is inconsistent
|
||||
let height = 0;
|
||||
let height = 0
|
||||
if (nodes[0].type === 'LoadImage') {
|
||||
height = 344
|
||||
}
|
||||
|
||||
nodes.forEach((node, index) => {
|
||||
if (index > 0) {
|
||||
node.pos = [ x, y + (height * index) + (25 * (index + 1)) ]
|
||||
node.pos = [x, y + height * index + 25 * (index + 1)]
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
this.canvas.graph?.change()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user