Change indexed fields table to use EuiToolTip and display 10 rows by default (#17074) (#17129)

This commit is contained in:
Jen Huang 2018-03-14 09:27:37 -07:00 committed by GitHub
parent ac060f450e
commit b8fcf06336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 1 deletions

View file

@ -164,6 +164,7 @@ exports[`Table should render normally 1`] = `
}
pagination={
Object {
"initialPageSize": 10,
"pageSizeOptions": Array [
5,
10,

View file

@ -62,6 +62,7 @@ export class Table extends PureComponent {
const { indexPattern, items, editField } = this.props;
const pagination = {
initialPageSize: 10,
pageSizeOptions: [5, 10, 25, 50]
};

View file

@ -63,6 +63,7 @@ exports[`Table should render normally 1`] = `
}
pagination={
Object {
"initialPageSize": 10,
"pageSizeOptions": Array [
5,
10,

View file

@ -80,6 +80,7 @@ export class Table extends PureComponent {
}];
const pagination = {
initialPageSize: 10,
pageSizeOptions: [5, 10, 25, 50],
};

View file

@ -94,6 +94,7 @@ exports[`Table should render normally 1`] = `
loading={true}
pagination={
Object {
"initialPageSize": 10,
"pageSizeOptions": Array [
5,
10,

View file

@ -162,6 +162,7 @@ export class Table extends Component {
const { items, isSaving } = this.props;
const columns = this.getColumns();
const pagination = {
initialPageSize: 10,
pageSizeOptions: [5, 10, 25, 50],
};

View file

@ -70,7 +70,7 @@ export default function ({ getService, getPageObjects }) {
});
describe('field list pagination', function () {
const EXPECTED_DEFAULT_PAGE_SIZE = 5;
const EXPECTED_DEFAULT_PAGE_SIZE = 10;
const EXPECTED_FIELD_COUNT = 86;
const EXPECTED_LAST_PAGE_COUNT = EXPECTED_FIELD_COUNT % EXPECTED_DEFAULT_PAGE_SIZE;
const LAST_PAGE_NUMBER = Math.ceil(EXPECTED_FIELD_COUNT / EXPECTED_DEFAULT_PAGE_SIZE);