open-nomad/ui/app/controllers/jobs.js
Michael Lange 93f41278b1 Clear up the data flow for namespaces
This is incredibly tricky with query params, since there is a bundle of
timing issues, lifecycle issues, missing features, and all around
gotchas with query params.

This solution has no observers and no instances of the system service
being set from the jobs controller.

The upside to this is no observers, much easier to follow logic, no more
dependent key chain reactions.
2018-08-09 18:22:38 -07:00

15 lines
262 B
JavaScript

import { inject as service } from '@ember/service';
import Controller from '@ember/controller';
export default Controller.extend({
system: service(),
queryParams: {
jobNamespace: 'namespace',
},
isForbidden: false,
jobNamespace: 'default',
});