mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +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:
parent
524c5469f1
commit
665de2bd5a
7 changed files with 168 additions and 105 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue