UNPKG

@alihbuzaid/ember-ui

Version:

Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.

16 lines (12 loc) 544 B
import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; export default class TimelineItemComponent extends Component { @tracked isActive = false; constructor(owner, { activeStatus, activity }) { super(...arguments); this.isActive = typeof activeStatus === 'string' && typeof activity.code === 'string' && activeStatus.toLowerCase() === activity.code.toLowerCase(); if (typeof activity.isActive === 'boolean') { this.isActive = activity.isActive; } } }