Skip to content

Commit

Permalink
Permalinks in tasks overview
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Feb 5, 2024
1 parent 9c36295 commit c98667d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions widgets/TaskContextMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ protected function getViewParams()
{
$params = parent::getViewParams();
$params['toggler'] = $this->getToggler();
$params['task'] = $this->task;
return $params;
}

public function initControls()
{
$this->renderOptions->disableControlsEntryEdit();
$this->renderOptions->disableControlsEntryDelete();
$this->renderOptions->disableControlsEntryPin();

if ($this->task->content->canEdit()) {
$this->addEntry(new MenuLink([
Expand Down
4 changes: 3 additions & 1 deletion widgets/views/taskContextMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
*/

use humhub\libs\Html;
use humhub\modules\tasks\models\Task;
use humhub\modules\ui\menu\MenuEntry;
use humhub\widgets\Link;

/* @var MenuEntry[] $entries */
/* @var array $options */
/* @var Link $toggler */
/* @var Task $task */
?>
<div data-ui-widget="stream.StreamEntry">
<div data-ui-widget="stream.StreamEntry" data-content-key="<?= $task->content->id ?>">
<div class="stream-entry-loader"></div>
<?= Html::beginTag('ul', $options) ?>
<li class="dropdown">
Expand Down

0 comments on commit c98667d

Please sign in to comment.