Skip to content

Commit

Permalink
[BUG FIX] [MER-3511] Incorrect sorting in a projects all activities view
Browse files Browse the repository at this point in the history
Co-authored-by: Raphael Gachuhi <rgachuhi@cmu.edu>
  • Loading branch information
rgachuhi and Raphael Gachuhi authored Oct 22, 2024
1 parent 93a5720 commit 0c2b49f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 8 additions & 2 deletions lib/oli_web/live/resources/activities_table_model.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,25 @@ defmodule OliWeb.Resources.ActivitiesTableModel do
label: "Type",
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_type_column/3
},
%ColumnSpec{
name: :title,
label: "Title"
},
%ColumnSpec{
name: :scope,
label: "Scope"
},
%ColumnSpec{
name: :content,
label: "Stem",
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3,
sortable: false
},
%ColumnSpec{
name: :resource_id,
label: "Page",
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3,
sortable: false
},
%ColumnSpec{
name: :updated_at,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,25 @@ defmodule OliWeb.Workspaces.CourseAuthor.Activities.ActivitiesTableModel do
label: "Type",
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_type_column/3
},
%ColumnSpec{
name: :title,
label: "Title"
},
%ColumnSpec{
name: :scope,
label: "Scope"
},
%ColumnSpec{
name: :content,
name: :stem,
label: "Stem",
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3,
sortable: false
},
%ColumnSpec{
name: :resource_id,
label: "Page",
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3
render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3,
sortable: false
},
%ColumnSpec{
name: :updated_at,
Expand Down

0 comments on commit 0c2b49f

Please sign in to comment.