aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main/MainToolbar.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-30 11:41:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-30 11:41:52 -0700
commit0d4fc56fa3f44e71dfc8affe889c3a6cfab04652 (patch)
treed1ffcf9afd030bbc72b5a4864348e891f0ebff72 /modern/src/main/MainToolbar.js
parent06c98c0b8216bbba5bf971cb92138741df03f1c4 (diff)
downloadtrackermap-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.js6
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={(