github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/controllers/jobs/job/services/service.js (about)

     1  import Controller from '@ember/controller';
     2  import { action } from '@ember/object';
     3  import { inject as service } from '@ember/service';
     4  
     5  export default class JobsJobServicesServiceController extends Controller {
     6    @service router;
     7    queryParams = ['level'];
     8  
     9    @action
    10    gotoAllocation(allocation) {
    11      this.router.transitionTo('allocations.allocation', allocation.get('id'));
    12    }
    13  }