@gisce/react-ooui 1.2.6-rc.2 → 1.2.6-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/react-ooui.es.js +492 -490
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +9 -9
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/actionbar/TreeActionBar.tsx +8 -1
- package/src/widgets/views/SearchTree.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext, useState } from "react";
|
|
2
|
-
import { Space } from "antd";
|
|
2
|
+
import { Space, Spin } from "antd";
|
|
3
3
|
import ChangeViewButton from "./ChangeViewButton";
|
|
4
4
|
import {
|
|
5
5
|
ActionViewContext,
|
|
@@ -151,6 +151,13 @@ function TreeActionBar(props: Props) {
|
|
|
151
151
|
|
|
152
152
|
return (
|
|
153
153
|
<Space wrap={true}>
|
|
154
|
+
{treeIsLoading && (
|
|
155
|
+
<>
|
|
156
|
+
<Spin />
|
|
157
|
+
{separator()}
|
|
158
|
+
{separator()}
|
|
159
|
+
</>
|
|
160
|
+
)}
|
|
154
161
|
{treeExpandable ? null : (
|
|
155
162
|
<>
|
|
156
163
|
<SearchBar
|
|
@@ -181,9 +181,9 @@ function SearchTree(props: Props, ref: any) {
|
|
|
181
181
|
setInitialFetchDone(true);
|
|
182
182
|
} catch (error) {
|
|
183
183
|
setInitialError(error);
|
|
184
|
+
setTreeIsLoading?.(false);
|
|
184
185
|
} finally {
|
|
185
186
|
setIsLoading(false);
|
|
186
|
-
setTreeIsLoading?.(false);
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
|