ManageIQ / ui-components

Angular UI Components for ManageIQ
Apache License 2.0
16 stars 52 forks source link

miq-data-table pagination confused behavior #419

Closed bekasovoleg closed 3 years ago

bekasovoleg commented 5 years ago

miq-pagination consists of miq-sort-items, miq-paging and select all checkbox

when paginationCtrl.settings.hideSelect is set, miq-pagination is hidden instead of only select all checkbox part

https://github.com/ManageIQ/ui-components/blob/master/src/gtl/components/pagination/pagination.html#L1

if tableCtrl.settings.sortBy isn't true, also miq-pagination is hidden instead of miq-sort-items part

it checks here https://github.com/ManageIQ/ui-components/blob/master/src/gtl/components/data-table/data-table.html#L4

we need to check tableCtrl.settings.sortBy only here: https://github.com/ManageIQ/ui-components/blob/master/src/gtl/components/pagination/pagination.html#L18

also pagination isn't hidden, when settings.isLoading == true https://github.com/ManageIQ/ui-components/blob/master/src/gtl/components/data-table/data-table.html#L4

martinpovolny commented 5 years ago

@bekasovoleg : we are going to rewrite this component in react in the following months.

I suggest you you make a list of issues/improvements and we apply it to the new (React) version.

bekasovoleg commented 5 years ago

@martinpovolny

miq-bot commented 4 years ago

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation.

himdel commented 3 years ago

Closing, https://github.com/ManageIQ/manageiq-ui-classic/pull/7188 changed the implementation to react.