Files
threshold-ui/addons/api/addon/models/managed-group.js
T

21 lines
660 B
JavaScript
Raw Normal View History

import GeneratedManagedGroupModel from '../generated/models/managed-group';
2021-10-29 15:01:50 -07:00
import { attr } from '@ember-data/model';
import { fragment } from 'ember-data-model-fragments/attributes';
import { A } from '@ember/array';
2021-10-28 08:30:28 -07:00
export default class ManagedGroupModel extends GeneratedManagedGroupModel {
2021-10-29 15:01:50 -07:00
// =attributes
/**
* Members is read-only under normal circumstances. But members can
* be persisted via calls to `addMembers()` or `removeMembers()`.
*/
@attr({
readOnly: true,
defaultValue: () => A(),
emptyArrayIfMissing: true,
})
member_ids;
@fragment('fragment-managed-group-attributes', { defaultValue: {} })
2021-10-29 15:01:50 -07:00
attributes;
}