@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "1.2.6-rc.2",
3
+ "version": "1.2.6-rc.3",
4
4
  "files": [
5
5
  "dist",
6
6
  "src",
@@ -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