* DEV: Import every instance of Ember.computed function * export default for Ember.computed
20 lines
460 B
JavaScript
20 lines
460 B
JavaScript
import { equal } from "@ember/object/computed";
|
|
import Component from "@ember/component";
|
|
const EditCategoryPanel = Component.extend({});
|
|
|
|
export default EditCategoryPanel;
|
|
|
|
export function buildCategoryPanel(tab, extras) {
|
|
return EditCategoryPanel.extend(
|
|
{
|
|
activeTab: equal("selectedTab", tab),
|
|
classNameBindings: [
|
|
":modal-tab",
|
|
"activeTab::hide",
|
|
`:edit-category-tab-${tab}`
|
|
]
|
|
},
|
|
extras || {}
|
|
);
|
|
}
|