Whatsapp-Lite (Beta Mode) Added in Config Node

This commit is contained in:
rawee
2023-01-26 03:40:30 +05:30
parent 1830190943
commit f0221c4c70
14 changed files with 1456 additions and 251 deletions

View File

@@ -3,21 +3,35 @@
category: 'config',
defaults: {
cName : {value:"whatsapp-web",required:true},
name : {value : "Web"}
name : {value : "Web"},
clientType: {}
},
label: function() {
return this.cName ;
return this.clientType;
},
oneditprepare: function(){
$("#node-config-input-clientType").typedInput({
types: [
{
value: "Select Client Type",
options: [
{ value: "waWebClient", label: "Whatsapp Web"},
{ value: "waSocketClient", label: "Whatsapp Lite"},
]
}
]
})
}
});
</script>
<script type="text/html" data-template-name="whatsappLink">
<div class="form-row">
<label for="node-config-input-cName"><i class="fa fa-gear"></i>Name</label>
<input type="text" id="node-config-input-cName">
<div>
<label for="node-config-input-client" ><i class="fa fa-cog"></i> Select type of Whatsapp Client : </label>
<input type="text" id="node-config-input-clientType">
</div>
<br>
<div class="form-tips">
<p> All done here just <b>click the ok button</b> and proceed.
Name can be update if required but with no-space.</p>
<p> All done here just <b>Select the type of Whatsapp Client</b> and proceed.</p>
</div>
</script>