open-vault/ui/app/models/identity/entity-merge.js

22 lines
572 B
JavaScript
Raw Normal View History

import { computed } from '@ember/object';
2018-04-03 14:16:57 +00:00
import DS from 'ember-data';
import IdentityModel from './_base';
2018-04-03 14:16:57 +00:00
const { attr } = DS;
export default IdentityModel.extend({
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,
}),
});