mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show placeholder along with no items text
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
3b8cf08c40
commit
1aa7561ccf
@ -187,8 +187,15 @@ export class ItemListLayoutContent<I extends ItemObject> extends React.Component
|
||||
);
|
||||
}
|
||||
|
||||
if (this.props.showEmptyTablePlaceholder && this.props.renderTableHeader) {
|
||||
return <Placeholder renderTableHeader={this.props.renderTableHeader}/>;
|
||||
if (this.props.showEmptyTablePlaceholder && this.props.renderTableHeader && this.props.tableId) {
|
||||
return (
|
||||
<>
|
||||
<Placeholder renderTableHeader={this.props.renderTableHeader} tableId={this.props.tableId}/>
|
||||
<div className="noItemsHolder">
|
||||
<NoItems />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
return <NoItems />;
|
||||
|
||||
@ -33,6 +33,12 @@
|
||||
position: relative;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.noItemsHolder {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.ItemListLayoutVisibilityMenu {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user