2018-09-25 16:28:26 +00:00
|
|
|
import { computed } from '@ember/object';
|
2018-04-03 14:16:57 +00:00
|
|
|
import DS from 'ember-data';
|
2018-09-25 16:28:26 +00:00
|
|
|
import IdentityModel from './_base';
|
2018-04-03 14:16:57 +00:00
|
|
|
const { attr } = DS;
|
|
|
|
|
|
|
|
export default IdentityModel.extend({
|
2018-09-25 16:28:26 +00:00
|
|
|
formFields: computed(function() {
|
|
|
|
return ['toEntityId', 'fromEntityIds', 'force'];
|
|
|
|
}),
|
2018-04-03 14:16:57 +00:00
|
|
|
toEntityId: attr('string', {
|
|
|
|
label: 'Entity to merge to',
|
|
|
|
}),
|
|
|
|
fromEntityIds: attr({
|
|
|
|
label: 'Entities to merge from',
|
|
|
|
editType: 'stringArray',
|
|
|
|
}),
|
|
|
|
force: attr('boolean', {
|
|
|
|
label: 'Keep MFA secrets from the "to" entity if there are merge conflicts',
|
|
|
|
defaultValue: false,
|
|
|
|
}),
|
|
|
|
});
|