open-vault/ui/app/models/kmip/scope.js

13 lines
306 B
JavaScript

import { computed } from '@ember/object';
import DS from 'ember-data';
const { attr } = DS;
import { expandAttributeMeta } from 'vault/utils/field-to-attrs';
export default DS.Model.extend({
name: attr('string'),
attrs: computed(function() {
return expandAttributeMeta(this, ['name']);
}),
});