@siglesiasg/node-red-hyperledger-fabric-gateway
Version:
Hyperledger Fabric 2.x nodes for node-red with latest fabric-gateway library
39 lines (30 loc) • 1.24 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('fabric-mspid', {
category : 'config',
defaults : {
name: {value: ''},
mspId: {value : '', required : true},
},
label : function () {
return this.name?this.name:this.mspId;
},
});
</script>
<script type="text/html" data-template-name="fabric-mspid">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-config-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
<div class="form-row">
<label for="node-config-input-mspId"><i class="fa"></i>Msp Id</label>
<input type="text" id="node-config-input-mspId" placeholder="testMspId"/>
</div>
</script>
<script type="text/html" data-help-name="fabric-mspid">
<span class="red-ui-text-bidi-aware">
<h2>Hyperledger Fabric MspId Config</h2>
<p>Configuration node to select mspid name</p>
<h3 class="red-ui-help-info-header">Details</h3>
<p>MspId to be used in the network configuration</p>
</span>
</script>