summaryrefslogtreecommitdiff
path: root/app/Controller/Project.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Project.php')
-rw-r--r--app/Controller/Project.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php
index 4e01271a..165ed2df 100644
--- a/app/Controller/Project.php
+++ b/app/Controller/Project.php
@@ -95,10 +95,21 @@ class Project extends Base
{
$project = $this->getProject();
+ if ($this->request->isPost()) {
+ $params = $this->request->getValues();
+ $params += array('hipchat' => 0, 'slack' => 0);
+ $this->projectIntegration->saveParameters($project['id'], $params);
+ }
+
+ $values = $this->projectIntegration->getParameters($project['id']);
+ $values += array('hipchat_api_url' => 'https://api.hipchat.com');
+
$this->response->html($this->projectLayout('project/integrations', array(
'project' => $project,
'title' => t('Integrations'),
'webhook_token' => $this->config->get('webhook_token'),
+ 'values' => $values,
+ 'errors' => array(),
)));
}