Rewrite external task view component in vanilla javascript

This commit is contained in:
Frederic Guillot
2016-11-21 23:01:17 -05:00
parent 8976f4d15c
commit d3cb436eb5
3 changed files with 9 additions and 14 deletions

View File

@@ -161,7 +161,9 @@
</div>
<?php if (! empty($task['external_uri']) && ! empty($task['external_provider'])): ?>
<external-task-view url="<?= $this->url->href('ExternalTaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])) ?>"></external-task-view>
<?= $this->app->component('external-task-view', array(
'url' => $this->url->href('ExternalTaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])),
)) ?>
<?php endif ?>
<?php if ($editable && empty($task['date_started'])): ?>