ui: add security warning to api_key widget label

This commit is contained in:
tazztone
2026-04-26 20:18:55 +02:00
parent bafca3880d
commit 916a6e7938
+6
View File
@@ -31,6 +31,12 @@ app.registerExtension({
nodeType.prototype.onNodeCreated = function () {
const me = onNodeCreated?.apply(this);
// Find api_key widget and update label with security warning
const apiKeyWidget = this.widgets?.find(w => w.name === "api_key");
if (apiKeyWidget) {
apiKeyWidget.label = "api_key (Leave blank for secure loading)";
}
// Start with a new dynamic input - exactly like cozy example
this.addInput(PREFIX, TYPE);