Node tips added

This commit is contained in:
rawee 2022-12-08 21:22:24 +05:30
parent 4db7b2aff3
commit e0bb5ea69d
3 changed files with 10 additions and 6 deletions

View File

@ -30,8 +30,10 @@
<label for="node-input-number"><i class="fa fa-tag"></i> Number</label>
<input type="text" id="node-input-number" placeholder="Mobile Number..">
</div>
<p>Don't forget to mention international dialing code befor your number.
Number must be in format like `+11 99999 99999` without any space</p>
<div class="form-tips">
<p>Don't forget to mention international dialing code befor your number.
Number must be in format like <b>+11 99999 99999</b> without any space</p>
</div>
</script>

View File

@ -3,7 +3,9 @@ module.exports = function(RED) {
RED.nodes.createNode(this,config);
var node = this;
node.number = config.number;
node.number = this.number.includes('@c.us') ? this.number : `${this.number}@c.us`;
node.number = node.number.match(/\d+/);
//node.number = this.number.includes('@c.us') ? this.number : `${this.number}@c.us`;
node.number = `${node.number}@c.us`;
var whatsappLinkNode = RED.nodes.getNode(config.whatsappLink);
node.waClient = whatsappLinkNode.client;

View File

@ -16,8 +16,8 @@
<label for="node-config-input-cName"><i class="fa fa-bookmark"></i> Host</label>
<input type="text" id="node-config-input-cName">
</div>
<div>
<p> Thats sit. you don't have to change any thing here just click the ok
button and proceed. Name can be update if required but with no-space.</p>
<div class="form-tips">
<p> Thats sit. you don't have to change any thing here just <b>click the ok
button</b> and proceed. Name can be update if required but with no-space.</p>
</div>
</script>