mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 00:34:09 +00:00
Change terminology for property descriptors to 'labels'
This commit is contained in:
@@ -9453,7 +9453,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
entries.push({
|
||||
content:
|
||||
"<span class='property_name'>" +
|
||||
(info.descriptor ? info.descriptor : i) +
|
||||
(info.label ? info.label : i) +
|
||||
"</span>" +
|
||||
"<span class='property_value'>" +
|
||||
value +
|
||||
@@ -10051,7 +10051,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
|
||||
var dialog = this.createDialog(
|
||||
"<span class='name'>" +
|
||||
(info.descriptor ? info.descriptor : property) +
|
||||
(info.label ? info.label : property) +
|
||||
"</span>" +
|
||||
input_html +
|
||||
"<button>OK</button>",
|
||||
|
||||
4
build/litegraph.min.js
vendored
4
build/litegraph.min.js
vendored
@@ -4048,7 +4048,7 @@ $jscomp.polyfill("Object.values", function(x) {
|
||||
a = m.getPropertyPrintableValue(a, n.values);
|
||||
}
|
||||
a = m.decodeHTML(a);
|
||||
k.push({content:"<span class='property_name'>" + (n.descriptor ? n.descriptor : p) + "</span><span class='property_value'>" + a + "</span>", value:p});
|
||||
k.push({content:"<span class='property_name'>" + (n.label ? n.label : p) + "</span><span class='property_value'>" + a + "</span>", value:p});
|
||||
}
|
||||
if (k.length) {
|
||||
return new f.ContextMenu(k, {event:d, callback:function(a, b, d, e) {
|
||||
@@ -4371,7 +4371,7 @@ $jscomp.polyfill("Object.values", function(x) {
|
||||
k += "</select>";
|
||||
}
|
||||
}
|
||||
var h = this.createDialog("<span class='name'>" + (c.descriptor ? c.descriptor : b) + "</span>" + k + "<button>OK</button>", d);
|
||||
var h = this.createDialog("<span class='name'>" + (c.label ? c.label : b) + "</span>" + k + "<button>OK</button>", d);
|
||||
if ("enum" != f && "combo" != f || !c.values) {
|
||||
if ("boolean" == f) {
|
||||
(l = h.querySelector("input")) && l.addEventListener("click", function(a) {
|
||||
|
||||
@@ -9453,7 +9453,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
entries.push({
|
||||
content:
|
||||
"<span class='property_name'>" +
|
||||
(info.descriptor ? info.descriptor : i) +
|
||||
(info.label ? info.label : i) +
|
||||
"</span>" +
|
||||
"<span class='property_value'>" +
|
||||
value +
|
||||
@@ -10051,7 +10051,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
|
||||
var dialog = this.createDialog(
|
||||
"<span class='name'>" +
|
||||
(info.descriptor ? info.descriptor : property) +
|
||||
(info.label ? info.label : property) +
|
||||
"</span>" +
|
||||
input_html +
|
||||
"<button>OK</button>",
|
||||
|
||||
Reference in New Issue
Block a user