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.
16 lines
408 B
JavaScript
16 lines
408 B
JavaScript
import Model, { attr } from '@ember-data/model';
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
|
export const FOREIGN_KEY = 'Datacenter';
|
|
export const SLUG_KEY = 'Name';
|
|
|
|
export default class Datacenter extends Model {
|
|
@attr('string') uid;
|
|
@attr('string') Name;
|
|
@attr('boolean') Local;
|
|
@attr('boolean') Primary;
|
|
@attr('string') DefaultACLPolicy;
|
|
|
|
@attr('boolean', { defaultValue: () => true }) MeshEnabled;
|
|
}
|