open-nomad/ui/app/controllers/jobs/job/deployments.js
Michael Lange 7abf621441 On namespace change on a job detail page, redirect to /jobs
And reload jobs for the new namespace.
2017-10-23 17:42:36 -07:00

14 lines
413 B
JavaScript

import Ember from 'ember';
import WithNamespaceResetting from 'nomad-ui/mixins/with-namespace-resetting';
const { Controller, computed, inject } = Ember;
export default Controller.extend(WithNamespaceResetting, {
jobController: inject.controller('jobs.job'),
job: computed.alias('model'),
deployments: computed.alias('model.deployments'),
breadcrumbs: computed.alias('jobController.breadcrumbs'),
});