Skip to content

Commit 29d1b1a

Browse files
committed
Add name parameter to the configuration node
1 parent 95b4c33 commit 29d1b1a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/magento-eqp-config.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@
44
RED.nodes.registerType('magento-eqp-config', {
55
category: 'config',
66
defaults: {
7-
environment: { value: 'production' },
7+
name: { value: '' },
8+
environment: { value: 'production', required: true },
89
autoRefresh: { value: true }
910
},
1011
credentials: {
1112
appId: { type: 'text' },
1213
appSecret: { type: 'password' }
1314
},
1415
label: function () {
15-
return this.environment.toUpperCase();
16+
return `${this.name} | ${this.environment.toUpperCase()}`;
1617
}
1718
});
1819
</script>
1920

2021
<script type="text/html" data-template-name="magento-eqp-config">
22+
<div class="form-row">
23+
<label for="node-config-input-name"><i class="icon-tag" />Name</label>
24+
<input type="text" id="node-config-input-name" placeholder="Name" />
25+
</div>
26+
2127
<div class="form-row">
2228
<label for="node-config-input-environment"><i class="icon-tag" />Environment</label>
2329
<select id="node-config-input-environment">

0 commit comments

Comments
 (0)