mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
24 lines
724 B
HTML
24 lines
724 B
HTML
<script type="text/html" data-template-name="global-config">
|
|
<div class="form-row">
|
|
<button class="red-ui-button" type="button" id="node-input-edit-env-var" data-i18n="editor:env-var.header"></button>
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
RED.nodes.registerType('global-config',{
|
|
category: 'config',
|
|
defaults: {
|
|
name: { value: "" },
|
|
env: { value: [] },
|
|
},
|
|
credentials: {
|
|
map: { type: "map" }
|
|
},
|
|
oneditprepare: function() {
|
|
$('#node-input-edit-env-var').on('click', function(evt) {
|
|
RED.actions.invoke('core:show-user-settings', 'envvar')
|
|
})
|
|
}
|
|
});
|
|
</script>
|