UNPKG

@fleetbase/fleetops-engine

Version:

Fleet & Transport Management Extension for Fleetbase

31 lines (26 loc) 953 B
import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; export default class ConnectivityTelematicsDetailsSensorsRoute extends Route { @service store; queryParams = { page: { refreshModel: true }, limit: { refreshModel: true }, sort: { refreshModel: true }, query: { refreshModel: true }, status: { refreshModel: true }, type: { refreshModel: true }, device_uuid: { refreshModel: true }, last_reading_at: { refreshModel: true }, }; model(params) { const telematic = this.modelFor('connectivity.telematics.details'); return this.store.query('sensor', { ...params, telematic_uuid: telematic.id, }); } setupController(controller, model) { super.setupController(controller, model); controller.telematic = this.modelFor('connectivity.telematics.details'); } }