Skip to content

Commit

Permalink
feat: fix pipeline renamig records_relation to records in the jobs pa…
Browse files Browse the repository at this point in the history
…ge and pass thje filter_param to the pagination_toolbar
  • Loading branch information
pmareke committed Mar 13, 2024
1 parent 5db79e0 commit aa78cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/mission_control/jobs/page.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class MissionControl::Jobs::Page
DEFAULT_PAGE_SIZE = 10

attr_reader :records_relation, :index, :page_size
attr_reader :records, :index, :page_size

def initialize(relation, page: 1, page_size: DEFAULT_PAGE_SIZE)
@relation = relation
Expand Down
4 changes: 2 additions & 2 deletions app/views/mission_control/jobs/queues/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
</tr>
</thead>

<%= render partial: "mission_control/jobs/queues/job", collection: @jobs_page.jobs %>
<%= render partial: "mission_control/jobs/queues/job", collection: @jobs_page.records %>

</tbody>
</table>

<%= render "mission_control/jobs/shared/pagination_toolbar", jobs_page: @jobs_page %>
<%= render "mission_control/jobs/shared/pagination_toolbar", page: @jobs_page, filter_param: {} %>
<% end %>


0 comments on commit aa78cf0

Please sign in to comment.