open-nomad/ui/app/components/das/task-row.js
Buck Doyle 31b4ed7a6d
Add DAS UI code from enterprise (#9192)
This is a few combined iterations on the DAS feature.
2020-10-29 07:46:42 -05:00

21 lines
409 B
JavaScript

import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class DasTaskRowComponent extends Component {
@tracked height;
get half() {
return this.height / 2;
}
get borderCoverHeight() {
return this.height - 2;
}
@action
calculateHeight(element) {
this.height = element.clientHeight + 1;
}
}