summaryrefslogtreecommitdiff
path: root/app/Controller/Config.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-03-28 21:37:53 -0400
committerFrederic Guillot <fred@kanboard.net>2015-03-28 21:37:53 -0400
commit5536f6c6ce591ba05a169d2e33b6fb240378d8a4 (patch)
treebac0cb1563d8258965384b97be8d425578f71ef6 /app/Controller/Config.php
parentf9891a966fb87d2112f174b7c3a1b3a705b73bdd (diff)
Add Slack integration
Diffstat (limited to 'app/Controller/Config.php')
-rw-r--r--app/Controller/Config.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Controller/Config.php b/app/Controller/Config.php
index 6f3bc43c..57f586ae 100644
--- a/app/Controller/Config.php
+++ b/app/Controller/Config.php
@@ -43,6 +43,9 @@ class Config extends Base
if ($redirect === 'board') {
$values += array('subtask_restriction' => 0, 'subtask_time_tracking' => 0, 'subtask_forecast' => 0);
}
+ else if ($redirect === 'integrations') {
+ $values += array('integration_slack_webhook' => 0);
+ }
if ($this->config->save($values)) {
$this->config->reload();
@@ -102,6 +105,20 @@ class Config extends Base
}
/**
+ * Display the integration settings page
+ *
+ * @access public
+ */
+ public function integrations()
+ {
+ $this->common('integrations');
+
+ $this->response->html($this->layout('config/integrations', array(
+ 'title' => t('Settings').' &gt; '.t('Integrations'),
+ )));
+ }
+
+ /**
* Display the webhook settings page
*
* @access public