From 7f98493fa01d7787d07dc008d9fc0bff0ebdfad9 Mon Sep 17 00:00:00 2001 From: Ellen Wittingen Date: Sat, 9 Sep 2023 17:00:39 +0200 Subject: [PATCH] fixed ordering of adverts on public site --- app/controllers/public/room-forum.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/controllers/public/room-forum.js diff --git a/app/controllers/public/room-forum.js b/app/controllers/public/room-forum.js new file mode 100644 index 000000000..955af82d5 --- /dev/null +++ b/app/controllers/public/room-forum.js @@ -0,0 +1,9 @@ +import FilterableAndSortableController from 'amber-ui/controllers/application/filterable-and-sortable'; +import { tracked } from '@glimmer/tracking'; + +export default class RoomForumController extends FilterableAndSortableController { + @tracked sortedAttribute = 'created_at'; + @tracked sortedAscending = false; + + queryParams = ['page', 'sort']; +}