From a5662874a5c460e6e530d5e4fa551d8885b72d75 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 3 Sep 2020 20:22:01 -0600 Subject: [PATCH] Add icons to machine API output --- lib/Machine.lib.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/Machine.lib.php b/lib/Machine.lib.php index b057284..918d250 100644 --- a/lib/Machine.lib.php +++ b/lib/Machine.lib.php @@ -95,7 +95,16 @@ class Machine implements JsonSerializable { "publicnotes" => $Strings->get("Public Notes", false), "type" => $Strings->get("Type", false) ], - "icons" => [] + "icons" => [ + "model" => "fas fa-hashtag", + "condition" => "fas fa-star-half-alt", + "price" => "fas fa-money-bill-wave", + "os" => "fas fa-hdd", + "serial" => "fas fa-barcode", + "manufacturer" => "fas fa-industry", + "privatenotes" => "fas fa-comment-dots", + "publicnotes" => "far fa-comment-dots" + ] ] ]; }