Skip to content

Commit 6dac48c

Browse files
authored
Harmonize / update / add missing icon (#15047)
* feat(UI): harmonize icon from tab * feat(UI): add / update missing icon * fix * fix CS
1 parent 324d0b2 commit 6dac48c

File tree

8 files changed

+72
-54
lines changed

8 files changed

+72
-54
lines changed

src/DeviceControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,6 @@ public function getHTMLTableCellForItem(
157157

158158
public static function getIcon()
159159
{
160-
return "fas fa-microchip";
160+
return "ti ti-cpu";
161161
}
162162
}

src/DeviceDrive.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,6 @@ public function getImportCriteria()
191191

192192
public static function getIcon()
193193
{
194-
return "fas fa-hdd";
194+
return "far fa-hdd";
195195
}
196196
}

src/DeviceHardDrive.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,6 @@ public static function rawSearchOptionsToAdd($itemtype, $main_joinparams)
283283

284284
public static function getIcon()
285285
{
286-
return "fas fa-hdd";
286+
return "far fa-hdd";
287287
}
288288
}

src/Inventory/Conf.php

Lines changed: 53 additions & 46 deletions
Large diffs are not rendered by default.

src/Item_Disk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static function getTypeName($nb = 0)
5959

6060
public static function getIcon()
6161
{
62-
return 'fas fa-hdd';
62+
return 'far fa-hdd';
6363
}
6464

6565
public function post_getEmpty()

src/NetworkPortConnectionLog.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,9 @@ public function showForItem(NetworkPort $netport, $user_filters = [])
171171
}
172172
echo "</tbody>";
173173
}
174+
175+
public static function getIcon()
176+
{
177+
return 'ti ti-history';
178+
}
174179
}

src/NetworkPortInstantiation.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -853,11 +853,12 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
853853
if ($instantiation !== false) {
854854
$log = new Log();
855855
//TRANS: %1$s is a type, %2$s is a table
856-
return sprintf(
856+
857+
return $log::createTabEntry(sprintf(
857858
__('%1$s - %2$s'),
858-
$instantiation->getTypeName(),
859-
$log->getTabNameForItem($instantiation)
860-
);
859+
$log->getTypeName(),
860+
$instantiation->getTypeName()
861+
), 0, $item::getType());
861862
}
862863
}
863864
return '';

src/NetworkPortMetrics.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,9 @@ private function getLabelFor($key)
214214
return __('Output errors');
215215
}
216216
}
217+
218+
public static function getIcon()
219+
{
220+
return 'ti ti-chart-line';
221+
}
217222
}

0 commit comments

Comments
 (0)