Add Slack integration
This commit is contained in:
@@ -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();
|
||||
@@ -101,6 +104,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').' > '.t('Integrations'),
|
||||
)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the webhook settings page
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user