open-nomad/ui/app/controllers/jobs/job/versions.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
407 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'),
versions: computed.alias('model.versions'),
breadcrumbs: computed.alias('jobController.breadcrumbs'),
});