Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.1.1 (Unreleased)
-----------------------
- Fix #21: Missing icon in Context Menu (File handler)

1.1.0 (August 28, 2025)
-----------------------
- Enh #18: Update Active Form for Bootstrap 5
Expand Down
7 changes: 5 additions & 2 deletions filehandler/CreateFileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

namespace humhub\modules\drawio\filehandler;

use Yii;
use humhub\modules\file\handler\BaseFileHandler;
use humhub\modules\ui\icon\widgets\Icon;
use Yii;
use yii\helpers\Url;

/**
Expand All @@ -19,13 +20,15 @@
*/
class CreateFileHandler extends BaseFileHandler
{
public string $icon = 'plus-square';

/**
* @inheritdoc
*/
public function getLinkAttributes()
{
return [
'label' => Yii::t('DrawioModule.base', 'Create draw.io document'),
'label' => Icon::get($this->icon) . Yii::t('DrawioModule.base', 'Create draw.io document'),
'data-action-url' => Url::to(['/drawio/create']),
'data-action-click' => 'ui.modal.load',
'data-modal-id' => 'drawio-modal',
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"diagrams",
"visualization"
],
"version": "1.1.0",
"version": "1.1.1",
"humhub": {
"minVersion": "1.18"
},
Expand Down