mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Expand add panels flyout and increase default rows per page (#30508)
This commit is contained in:
parent
eec981c0e2
commit
e00ecb2ff3
3 changed files with 5 additions and 4 deletions
|
@ -8,7 +8,7 @@ exports[`render 1`] = `
|
|||
maxWidth={false}
|
||||
onClose={[Function]}
|
||||
ownFocus={true}
|
||||
size="s"
|
||||
size="m"
|
||||
>
|
||||
<EuiFlyoutBody>
|
||||
<EuiTitle
|
||||
|
|
|
@ -146,7 +146,6 @@ class DashboardAddPanelUi extends React.Component {
|
|||
<EuiFlyout
|
||||
ownFocus
|
||||
onClose={this.props.onClose}
|
||||
size="s"
|
||||
data-test-subj="dashboardAddPanel"
|
||||
>
|
||||
<EuiFlyoutBody>
|
||||
|
|
|
@ -62,6 +62,7 @@ interface SavedObjectFinderUIProps extends InjectedIntlProps {
|
|||
noItemsMessage?: React.ReactNode;
|
||||
savedObjectType: 'visualization' | 'search';
|
||||
visTypes?: VisTypesRegistryProvider;
|
||||
initialPageSize?: 5 | 10 | 15;
|
||||
}
|
||||
|
||||
class SavedObjectFinderUI extends React.Component<
|
||||
|
@ -75,6 +76,7 @@ class SavedObjectFinderUI extends React.Component<
|
|||
noItemsMessage: PropTypes.node,
|
||||
savedObjectType: PropTypes.oneOf(['visualization', 'search']).isRequired,
|
||||
visTypes: PropTypes.object,
|
||||
initialPageSize: PropTypes.number,
|
||||
};
|
||||
|
||||
private isComponentMounted: boolean = false;
|
||||
|
@ -133,7 +135,7 @@ class SavedObjectFinderUI extends React.Component<
|
|||
items: [],
|
||||
isFetchingItems: false,
|
||||
page: 0,
|
||||
perPage: 10,
|
||||
perPage: props.initialPageSize || 15,
|
||||
filter: '',
|
||||
};
|
||||
}
|
||||
|
@ -253,7 +255,7 @@ class SavedObjectFinderUI extends React.Component<
|
|||
pageIndex: this.state.page,
|
||||
pageSize: this.state.perPage,
|
||||
totalItemCount: this.state.items.length,
|
||||
pageSizeOptions: [5, 10],
|
||||
pageSizeOptions: [5, 10, 15],
|
||||
};
|
||||
// TODO there should be a Type in EUI for that, replace if it exists
|
||||
const sorting: { sort?: EuiTableCriteria['sort'] } = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue