Files
nomad/ui/app/components/das/task-row.js
2023-04-10 15:36:59 +00:00

26 lines
487 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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;
}
}