2022-11-04 10:42:51 +01:00
|
|
|
<script type="text/html" data-template-name="global-config">
|
2022-12-06 02:25:25 +01:00
|
|
|
<div class="form-row">
|
|
|
|
<button class="red-ui-button" type="button" id="node-input-edit-env-var" data-i18n="editor:env-var.header"></button>
|
2022-11-04 10:42:51 +01:00
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
RED.nodes.registerType('global-config',{
|
|
|
|
category: 'config',
|
|
|
|
defaults: {
|
|
|
|
name: { value: "" },
|
|
|
|
env: { value: [] },
|
|
|
|
},
|
|
|
|
credentials: {
|
|
|
|
map: { type: "map" }
|
2022-12-06 02:25:25 +01:00
|
|
|
},
|
|
|
|
oneditprepare: function() {
|
|
|
|
$('#node-input-edit-env-var').on('click', function(evt) {
|
|
|
|
RED.actions.invoke('core:show-user-settings', 'envvar')
|
|
|
|
})
|
2022-11-04 10:42:51 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|