93f41278b1
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.
15 lines
262 B
JavaScript
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',
|
|
});
|