open-vault/ui/app/models/identity/entity-merge.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

22 lines
572 B
JavaScript

import { computed } from '@ember/object';
import DS from 'ember-data';
import IdentityModel from './_base';
const { attr } = DS;
export default IdentityModel.extend({
formFields: computed(function() {
return ['toEntityId', 'fromEntityIds', 'force'];
}),
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,
}),
});