From e84cc40f0975c5bbdb1917d1dc94787713cb2453 Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Fri, 25 Feb 2022 17:12:56 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/DrillingProgram/CategoryEditor.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/DrillingProgram/CategoryEditor.jsx b/src/pages/DrillingProgram/CategoryEditor.jsx index 3cbb1c9..f9ebbbf 100644 --- a/src/pages/DrillingProgram/CategoryEditor.jsx +++ b/src/pages/DrillingProgram/CategoryEditor.jsx @@ -22,6 +22,7 @@ export const CategoryEditor = memo(({ idWell, visible, category, onClosed }) => const [users, setUsers] = useState([]) const [allUsers, setAllUsers] = useState([]) const [filteredUsers, setFilteredUsers] = useState([]) + const [isSearching, setIsSearching] = useState(false) const [showLoader, setShowLoader] = useState(false) const [searchValue, setSearchValue] = useState('') const [subject, setSubject] = useState(null) @@ -40,7 +41,7 @@ export const CategoryEditor = memo(({ idWell, visible, category, onClosed }) => ].join(' ').toLowerCase().includes(searchValue)) setFilteredUsers(filteredUsers) }, - setShowLoader, + setIsSearching, `Не удалось произвести поиск пользователей` ), [users, searchValue]) @@ -152,6 +153,7 @@ export const CategoryEditor = memo(({ idWell, visible, category, onClosed }) => placeholder={'Поиск пользователя'} onChange={onSearchTextChange} style={{ marginBottom: '15px' }} + loading={isSearching} />