Skip to content

Commit ec91bf7

Browse files
authored
Merge pull request #21 from humhub-contrib/fix/587-context-menu
Fix: Missing icon in Context Menu (File handler)
2 parents c2c8cb7 + 99e04a6 commit ec91bf7

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.1.1 (Unreleased)
5+
-----------------------
6+
- Fix #21: Missing icon in Context Menu (File handler)
7+
48
1.1.0 (August 28, 2025)
59
-----------------------
610
- Enh #18: Update Active Form for Bootstrap 5

filehandler/CreateFileHandler.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
namespace humhub\modules\drawio\filehandler;
1010

11-
use Yii;
1211
use humhub\modules\file\handler\BaseFileHandler;
12+
use humhub\modules\ui\icon\widgets\Icon;
13+
use Yii;
1314
use yii\helpers\Url;
1415

1516
/**
@@ -19,13 +20,15 @@
1920
*/
2021
class CreateFileHandler extends BaseFileHandler
2122
{
23+
public string $icon = 'plus-square';
24+
2225
/**
2326
* @inheritdoc
2427
*/
2528
public function getLinkAttributes()
2629
{
2730
return [
28-
'label' => Yii::t('DrawioModule.base', 'Create draw.io document'),
31+
'label' => Icon::get($this->icon) . Yii::t('DrawioModule.base', 'Create draw.io document'),
2932
'data-action-url' => Url::to(['/drawio/create']),
3033
'data-action-click' => 'ui.modal.load',
3134
'data-modal-id' => 'drawio-modal',

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"diagrams",
88
"visualization"
99
],
10-
"version": "1.1.0",
10+
"version": "1.1.1",
1111
"humhub": {
1212
"minVersion": "1.18"
1313
},

0 commit comments

Comments
 (0)