mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-13 12:10:23 +00:00
22 lines
469 B
JavaScript
22 lines
469 B
JavaScript
import Component from '@ember/component';
|
|
import { get } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
didInsertElement() {
|
|
this._super(...arguments);
|
|
const metric = get(this, 'model');
|
|
|
|
if (metric) {
|
|
self.initializeXEditable(
|
|
metric.id,
|
|
metric.description,
|
|
metric.dashboardName,
|
|
metric.sourceType,
|
|
metric.grain,
|
|
metric.displayFactor,
|
|
metric.displayFactorSym
|
|
);
|
|
}
|
|
}
|
|
});
|