4dd7e34c96
* ui: Ensure dc selector correctly shows the currently selected dc * ui: Restrict access to non-default partitions in non-primaries (#11420) This PR restricts access via the UI to only the default partition when in a non-primary datacenter i.e. you can only have multiple (non-default) partitions in the primary datacenter.
10 lines
299 B
JavaScript
10 lines
299 B
JavaScript
import Helper from '@ember/component/helper';
|
|
import { getOwner } from '@ember/application';
|
|
|
|
export default class CachedHelper extends Helper {
|
|
compute([model, params], hash) {
|
|
const container = getOwner(this);
|
|
return container.lookup(`service:repository/${model}`).cached(params);
|
|
}
|
|
}
|