1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Need to retain the accessKey defaults to be able to show them in the UI

This commit is contained in:
Wolfgang Nagele 2013-12-24 17:21:22 +01:00
parent 4e20f70bfd
commit 5342637132

View File

@ -31,6 +31,9 @@
label: function() { label: function() {
return this.accessKey; return this.accessKey;
}, },
defaults: {
accessKey: { value: "", required: true }
},
oneditprepare: function() { oneditprepare: function() {
$.getJSON("aws-credentials/" + this.id, function(data) { $.getJSON("aws-credentials/" + this.id, function(data) {
if (data.accessKey) { if (data.accessKey) {