diff --git a/app/assets/javascripts/controllers/report_data_controller.js b/app/assets/javascripts/controllers/report_data_controller.js index 69afab6472b..dfc8057f613 100644 --- a/app/assets/javascripts/controllers/report_data_controller.js +++ b/app/assets/javascripts/controllers/report_data_controller.js @@ -323,10 +323,16 @@ } this.setDefaults(); this.movePagination(); + + // pagination doesn't update on no records (components/data-table/data-table.html:4:99), hide it instead + if (! this.gtlData.rows.length) { + this.setExtraClasses(); + } + this.$timeout(function() { this.$window.ManageIQ.gtl.loading = false; this.$window.ManageIQ.gtl.isFirst = this.settings.current === 1; - this.$window.ManageIQ.gtl.isLast = this.settings.current === this.settings.totla; + this.$window.ManageIQ.gtl.isLast = this.settings.current === this.settings.total; }.bind(this)); return data; }.bind(this));