diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-30 11:41:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-30 11:41:52 -0700 |
commit | 0d4fc56fa3f44e71dfc8affe889c3a6cfab04652 (patch) | |
tree | d1ffcf9afd030bbc72b5a4864348e891f0ebff72 /modern/src/main/MainToolbar.js | |
parent | 06c98c0b8216bbba5bf971cb92138741df03f1c4 (diff) | |
download | trackermap-web-0d4fc56fa3f44e71dfc8affe889c3a6cfab04652.tar.gz trackermap-web-0d4fc56fa3f44e71dfc8affe889c3a6cfab04652.tar.bz2 trackermap-web-0d4fc56fa3f44e71dfc8affe889c3a6cfab04652.zip |
Persist device filtering
Diffstat (limited to 'modern/src/main/MainToolbar.js')
-rw-r--r-- | modern/src/main/MainToolbar.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/main/MainToolbar.js b/modern/src/main/MainToolbar.js index b6b0a556..859aa218 100644 --- a/modern/src/main/MainToolbar.js +++ b/modern/src/main/MainToolbar.js @@ -31,6 +31,8 @@ const MainToolbar = ({ filteredDevices, devicesOpen, setDevicesOpen, + keyword, + setKeyword, filter, setFilter, filterSort, @@ -63,8 +65,8 @@ const MainToolbar = ({ <OutlinedInput ref={inputRef} placeholder={t('sharedSearchDevices')} - value={filter.keyword} - onChange={(e) => setFilter({ ...filter, keyword: e.target.value })} + value={keyword} + onChange={(e) => setKeyword(e.target.value)} onFocus={() => setDevicesAnchorEl(toolbarRef.current)} onBlur={() => setDevicesAnchorEl(null)} endAdornment={( |