You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the default sort order is by id, ascending.
I've tried adding default sort order by appending query strings in the admin.html: to: internal_intranet_news_path(@conn, :index) <> "?sort_field=inserted_at&sort_direction=desc"
Apart from breaking the "active" state of the nav link, this works great. This also works with paginated pages.
Since the active link is important, I tried to set default order by setting it in the controller:
Given that Torch doesn't introduce any db tables, the default order will need to be set by hardcoding when the user installs Torch or runs mix torch.gen. Correct?
Right now, the default sort order is by id, ascending.
I've tried adding default sort order by appending query strings in the admin.html:
to: internal_intranet_news_path(@conn, :index) <> "?sort_field=inserted_at&sort_direction=desc"
Apart from breaking the "active" state of the nav link, this works great. This also works with paginated pages.
Since the active link is important, I tried to set default order by setting it in the controller:
This is probably cleaner, but this breaks pagination. When clicking on a pagination link, it adds the default query strings (id and asc).
Ideas?
The text was updated successfully, but these errors were encountered: