OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
import {
ChangeDetectionStrategy,
Component,
Input,
OnChanges,
SimpleChanges,
} from '@angular/core';
import { Highlighting } from 'core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions';
import { StatusResource } from 'core-app/features/hal/resources/status-resource';
@Component({
selector: 'op-in-app-notification-status',
styleUrls: ['./in-app-notification-status.component.sass'],
templateUrl: './in-app-notification-status.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false,
})
export class InAppNotificationStatusComponent implements OnChanges {
@Input() status:StatusResource;
highlightClass:string;
ngOnChanges(changes:SimpleChanges):void {
if (changes.status) {
const status = changes.status as { currentValue:StatusResource };
this.highlightClass = Highlighting.backgroundClass('status', status.currentValue.id || '');
}
}
}