Browse Source

Good starting place for #15, will pick back up on this later

Andy Baugh 6 years ago
parent
commit
8e124fd173
1 changed files with 10 additions and 1 deletions
  1. 10 1
      lib/Cpanel/iContact/Provider/Schema/Slack.pm

+ 10 - 1
lib/Cpanel/iContact/Provider/Schema/Slack.pm

@@ -61,6 +61,10 @@ Slack Incoming Webhook URL(s): URL created for sending notifications to the dest
 <br />In order to create an incoming webhook for the channel(s)/user(s) you wish to notify, please go to 'Browse apps > Custom Integrations > Incoming WebHooks > New configuration'
 <br />In order to create an incoming webhook for the channel(s)/user(s) you wish to notify, please go to 'Browse apps > Custom Integrations > Incoming WebHooks > New configuration'
 in Slack's 'App Directory' for your team.
 in Slack's 'App Directory' for your team.
 HALP
 HALP
+    my $help2 = <<HELP;
+Slack: Use concise notifications (Subject Only) -- If true, will discard the message body before send in order to make the message a bit more compact.
+In the future this may provide a link back to WHM in order to display the full notification.
+HELP
     return {
     return {
         'CONTACTSLACK' => {
         'CONTACTSLACK' => {
             'name'     => 'Slack',
             'name'     => 'Slack',
@@ -78,7 +82,12 @@ HALP
             },
             },
             'label' => 'Slack Incoming Webhook URL(s)',
             'label' => 'Slack Incoming Webhook URL(s)',
             'help'  => $help,
             'help'  => $help,
-        }
+        },
+        'SLACKCOMPACT' => {
+            'type'     => 'binary',
+            'label' => 'Slack: Use concise notifications (Subject Only)',
+            'help' => $help2,
+        },
     };
     };
 }
 }