This commit is contained in:
Daniel Gradman-Svendsen 2025-11-17 14:47:10 +01:00
parent 6daa3aa443
commit b04edfd913
6 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@
defaults: {
name: {value:"Chats Out"},
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
recipient: {value:"", type:'numberRecipient', required:false}
recipient: {value:"", type:'number-recipient', required:false}
},
outputs:0,
inputs:1,

View File

@ -5,7 +5,7 @@
defaults: {
name: {value:"Group Message"},
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
recipient: {value:"", type:'groupRecipient', required:false}
recipient: {value:"", type:'group-recipient', required:false}
},
outputs:0,
inputs:1,

View File

@ -1,5 +1,5 @@
<script type="text/javascript">
RED.nodes.registerType('groupRecipient', {
RED.nodes.registerType('group-recipient', {
category: 'config',
defaults: {
name: {value: ""},
@ -11,7 +11,7 @@
});
</script>
<script type="text/html" data-template-name="groupRecipient">
<script type="text/html" data-template-name="group-recipient">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Name">
@ -26,7 +26,7 @@
</div>
</script>
<script type="text/html" data-help-name="groupRecipient">
<script type="text/html" data-help-name="group-recipient">
<p>Configuration node for a WhatsApp group recipient.</p>
<h3>Details</h3>
<p>This configuration node stores a group ID that can be reused across multiple group output nodes.</p>

View File

@ -4,5 +4,5 @@ module.exports = function(RED) {
this.groupId = n.groupId;
this.name = n.name;
}
RED.nodes.registerType("groupRecipient", GroupRecipientNode);
RED.nodes.registerType("group-recipient", GroupRecipientNode);
}

View File

@ -1,5 +1,5 @@
<script type="text/javascript">
RED.nodes.registerType('numberRecipient', {
RED.nodes.registerType('number-recipient', {
category: 'config',
defaults: {
name: {value: ""},
@ -11,7 +11,7 @@
});
</script>
<script type="text/html" data-template-name="numberRecipient">
<script type="text/html" data-template-name="number-recipient">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Name">
@ -25,7 +25,7 @@
</div>
</script>
<script type="text/html" data-help-name="numberRecipient">
<script type="text/html" data-help-name="number-recipient">
<p>Configuration node for a WhatsApp chat recipient.</p>
<h3>Details</h3>
<p>This configuration node stores a phone number that can be reused across multiple chat output nodes.</p>

View File

@ -4,5 +4,5 @@ module.exports = function(RED) {
this.number = n.number;
this.name = n.name;
}
RED.nodes.registerType("numberRecipient", NumberRecipientNode);
RED.nodes.registerType("number-recipient", NumberRecipientNode);
}