Display: Add support for ObjectIcon and StateIcon first param in Display::getMdiIcon() (2)

pull/5031/head
Yannick Warnier 11 months ago
parent ceda280e89
commit 6841a43937
  1. 2
      public/main/inc/lib/display.lib.php

@ -2234,7 +2234,7 @@ class Display
$additionalAttributes['class'] = 'mdi mdi-';
if ($name instanceof ActionIcon or $name instanceof ToolIcon) {
if ($name instanceof ActionIcon or $name instanceof ToolIcon or $name instanceof ObjectIcon or $name instanceof StateIcon) {
$additionalAttributes['class'] .= $name->value;
} else {
$additionalAttributes['class'] .= $name;

Loading…
Cancel
Save