UNPKG

@fleetbase/fleetops-engine

Version:

Fleet & Transport Management Extension for Fleetbase

26 lines (22 loc) 759 B
import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; import { getOwner } from '@ember/application'; import getCurrentNestedController from '@fleetbase/ember-core/utils/get-current-nested-controller'; export default class ManagementContactsController extends Controller { @service hostRouter; get tabs() { return [ { route: 'management.contacts.index', label: 'Contacts', }, { route: 'management.contacts.customers', label: 'Customers', }, ]; } get childController() { return getCurrentNestedController(getOwner(this), this.hostRouter.currentRouteName); } }