Refactor search widget (#578)

* Refactor search widget

* Cleanup

* Fix for unallocated stock count

* Fix race condition

- Only upate results which match the current search term
- Prevents issues with multiple "competing" queries

* Fix for stock quantity

* Fix icon credits

* Tweak app bar color

* Cleanup visual stylinh
This commit is contained in:
Oliver 2024-12-14 17:29:35 +11:00 committed by GitHub
parent 524c5469f1
commit 665de2bd5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 168 additions and 105 deletions

View file

@ -301,13 +301,7 @@ class InvenTreeModel {
/*
* Attempt to extract a custom icon for this model.
* If icon data is provided, attempt to convert to a FontAwesome icon
*
* Icon data *should* be presented something like "fas fa-boxes" / "fab fa-github" (etc):
*
* - First part specifies the *style*
* - Second part specifies the icon
*
* If icon data is provided, attempt to convert to a TablerIcon icon
*/
IconData? get customIcon {
String icon = (jsondata["icon"] ?? "").toString().trim();