Skip to content

Commit 6d9f81b

Browse files
authored
Add missing 'getIcon()' function to the AllAssets class (#17356)
* Add missing 'getIcon' function to the AllAssets class * Change from fa icon to tabler icon * Change icon * Apply icon to Global menu
1 parent 80831b2 commit 6d9f81b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/AllAssets.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@ public static function getTypeName($nb = 0)
4444
{
4545
return _n('Asset', 'Assets', $nb);
4646
}
47+
48+
public static function getIcon()
49+
{
50+
return 'ti ti-packages';
51+
}
4752
}

src/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ public static function generateMenuSession($force = false)
15221522
$menu['assets']['content']['allassets']['title'] = __('Global');
15231523
$menu['assets']['content']['allassets']['shortcut'] = '';
15241524
$menu['assets']['content']['allassets']['page'] = '/front/allassets.php';
1525-
$menu['assets']['content']['allassets']['icon'] = 'fas fa-list';
1525+
$menu['assets']['content']['allassets']['icon'] = AllAssets::getIcon();
15261526
$menu['assets']['content']['allassets']['links']['search'] = '/front/allassets.php';
15271527
break;
15281528
}

0 commit comments

Comments
 (0)