mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
This rethinks namespaces as a filter on list pages rather than a global setting. The biggest net-new feature here is being able to select All (*) to list all jobs or CSI volumes across namespaces.
12 lines
271 B
JavaScript
12 lines
271 B
JavaScript
export default ability => hooks => {
|
|
hooks.beforeEach(function() {
|
|
this.ability = this.owner.lookup(`ability:${ability}`);
|
|
this.can = this.owner.lookup('service:can');
|
|
});
|
|
|
|
hooks.afterEach(function() {
|
|
delete this.ability;
|
|
delete this.can;
|
|
});
|
|
};
|