mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 21:12:36 +08:00
make default img_paste_mode to 'selected'
refactor space -> tab
This commit is contained in:
parent
5ea39fed9c
commit
06d8ffb71e
@ -33,10 +33,7 @@ export class ClipspaceDialog extends ComfyDialog {
|
|||||||
if(ClipspaceDialog.instance) {
|
if(ClipspaceDialog.instance) {
|
||||||
const self = ClipspaceDialog.instance;
|
const self = ClipspaceDialog.instance;
|
||||||
// allow reconstruct controls when copying from non-image to image content.
|
// allow reconstruct controls when copying from non-image to image content.
|
||||||
const children = $el("div.comfy-modal-content",[
|
const children = $el("div.comfy-modal-content", [ self.createImgSettings(), ...self.createButtons() ]);
|
||||||
self.createImgSettings(),
|
|
||||||
...self.createButtons()
|
|
||||||
]);
|
|
||||||
|
|
||||||
if(self.element) {
|
if(self.element) {
|
||||||
// update
|
// update
|
||||||
@ -96,7 +93,8 @@ export class ClipspaceDialog extends ComfyDialog {
|
|||||||
} }, combo_items);
|
} }, combo_items);
|
||||||
|
|
||||||
const row1 =
|
const row1 =
|
||||||
$el("tr", {},[
|
$el("tr", {},
|
||||||
|
[
|
||||||
$el("td", {}, [$el("font", {color:"white"}, ["Select Image"])]),
|
$el("td", {}, [$el("font", {color:"white"}, ["Select Image"])]),
|
||||||
$el("td", {}, [combo1])
|
$el("td", {}, [combo1])
|
||||||
]);
|
]);
|
||||||
@ -107,12 +105,14 @@ export class ClipspaceDialog extends ComfyDialog {
|
|||||||
ComfyApp.clipspace['img_paste_mode'] = event.target.value;
|
ComfyApp.clipspace['img_paste_mode'] = event.target.value;
|
||||||
} },
|
} },
|
||||||
[
|
[
|
||||||
$el("option", {value:'all'}, 'all'),
|
$el("option", {value:'selected'}, 'selected'),
|
||||||
$el("option", {value:'selected'}, 'selected')
|
$el("option", {value:'all'}, 'all')
|
||||||
]);
|
]);
|
||||||
|
combo2.value = ComfyApp.clipspace['img_paste_mode'];
|
||||||
|
|
||||||
const row2 =
|
const row2 =
|
||||||
$el("tr", {},[
|
$el("tr", {},
|
||||||
|
[
|
||||||
$el("td", {}, [$el("font", {color:"white"}, ["Paste Mode"])]),
|
$el("td", {}, [$el("font", {color:"white"}, ["Paste Mode"])]),
|
||||||
$el("td", {}, [combo2])
|
$el("td", {}, [combo2])
|
||||||
]);
|
]);
|
||||||
|
|||||||
@ -166,7 +166,7 @@ export class ComfyApp {
|
|||||||
'original_imgs': orig_imgs,
|
'original_imgs': orig_imgs,
|
||||||
'images': this.images,
|
'images': this.images,
|
||||||
'selectedIndex': 0,
|
'selectedIndex': 0,
|
||||||
'img_paste_mode': 'all'
|
'img_paste_mode': 'selected' // reset to default im_paste_mode state on copy action
|
||||||
};
|
};
|
||||||
|
|
||||||
if(ComfyApp.clipspace_invalidate_handler) {
|
if(ComfyApp.clipspace_invalidate_handler) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user