UNPKG

ember-alexandria

Version:

Document management frontend for the alexandria backend

17 lines (14 loc) 407 B
import Route from "@ember/routing/route"; const PARAM_OPTIONS = { refreshModel: true }; export default class SearchRoute extends Route { queryParams = { search: PARAM_OPTIONS, }; resetController(controller) { /* Depending on how ember alexandria is used we might have to reset the document selection on navigation */ controller.setProperties({ search: undefined, }); } }