Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Ember from 'ember';
import FlexberryDropdown from 'ember-flexberry/components/flexberry-dropdown';
import layout from '../templates/components/fd-tab-dropdown';
export default FlexberryDropdown.extend({
layout,
dynamicChange: true,
_items: Ember.computed('items.[]', function() {
let items = this.get('items');
let obj = null;
if (Ember.isArray(items)) {
obj = {};
items.forEach(item => obj[item.dataTab] = item.title);
}
return obj || items;
}),
actions: {