registries loading
@@ -19,6 +19,7 @@ import { DeleteIcon } from "../../widgets/Icon";
import { H4 } from "../../widgets/Label";
import { BasePage } from "../BasePage";
import { RegistryNewModal, RegistryNewModalID } from "./New";
+import { Loading } from "../../widgets/Loading";
const styles = (theme: Theme) =>
createStyles({
@@ -186,11 +187,16 @@ class RegistryListPageRaw extends React.PureComponent<Props, State> {
}
public render() {
+ const { isLoading, isFirstLoaded } = this.props;
const tableData = this.getData();
+
return (
<BasePage secondHeaderRight={this.renderSecondHeaderRight()}>
{this.renderDeleteConfirmDialog()}
<RegistryNewModal isEdit={false} />
+ {isLoading && !isFirstLoaded ? (
+ <Loading />
+ ) : (
<MaterialTable
options={{
pageSize: 20,
@@ -263,6 +269,7 @@ class RegistryListPageRaw extends React.PureComponent<Props, State> {
data={tableData}
title=""
/>
+ )}
</BasePage>
);
}
