mirror of
https://github.com/inventree/inventree-app.git
synced 2026-09-09 03:10:14 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user