github.com/hernad/nomad@v1.6.112/ui/app/controllers/jobs/job/services/service.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import Controller from '@ember/controller'; 7 import { action } from '@ember/object'; 8 import { inject as service } from '@ember/service'; 9 10 export default class JobsJobServicesServiceController extends Controller { 11 @service router; 12 queryParams = ['level']; 13 14 @action 15 gotoAllocation(allocation) { 16 this.router.transitionTo('allocations.allocation', allocation.get('id')); 17 } 18 }