mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 21:03:59 +00:00
info about empty database
This commit is contained in:
@@ -105,7 +105,21 @@ function SqlObjectList({ conid, database }) {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const inputRef = React.useRef(null);
|
const inputRef = React.useRef(null);
|
||||||
|
|
||||||
|
if (objectList.length == 0 && (status && status.name) != 'pending') {
|
||||||
|
return (
|
||||||
|
<WidgetsInnerContainer>
|
||||||
|
<ErrorInfo
|
||||||
|
message={`Database ${database} is empty or structure is not loaded, press Refresh button to reload structure`}
|
||||||
|
icon="img alert"
|
||||||
|
/>
|
||||||
|
<InlineButton onClick={handleRefreshDatabase}>Refresh</InlineButton>
|
||||||
|
</WidgetsInnerContainer>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SearchBoxWrapper>
|
<SearchBoxWrapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user