Update Whatsapp instance configuration to use a validation text box and set default instance value
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
"caption": "Whatsapp-Setup",
|
||||
"items": [
|
||||
{ "type": "CheckBox", "name": "SendWhatsapp", "caption": "Send Whatsapp" },
|
||||
{ "type": "SelectInstance", "name": "WhatappInst", "caption": "Whatsapp Insance" },
|
||||
{ "type": "ValidationTextBox", "name": "WhatappInst", "caption": "Whatsapp Insance" },
|
||||
{ "type": "ValidationTextBox", "name": "WhatsappNumbers", "caption": "Whatsapp-Numbers" }
|
||||
]
|
||||
},
|
||||
|
||||
@@ -21,7 +21,7 @@ class MonitoringServer extends IPSModule {
|
||||
$this->RegisterPropertyBoolean("SendNotification","false");
|
||||
|
||||
$this->RegisterPropertyBoolean("SendWhatsapp",false);
|
||||
$this->RegisterPropertyInteger("WhatappInst", 0);
|
||||
$this->RegisterPropertyInteger("WhatappInst","DdiBL06tEUa76w7NNCsW9y2s6UkUmrpxZcR8CvTNWMX5z4leyjqI1go2wpatYhCz");
|
||||
$this->RegisterPropertyString("WhatsappNumbers", "0159123456789,0157987456123");
|
||||
|
||||
$this->RegisterPropertyBoolean("SendMail",false);
|
||||
|
||||
Reference in New Issue
Block a user