You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
808 B
33 lines
808 B
import { translate } from '@ghostfolio/ui/i18n';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
import {
|
|
CUSTOM_ELEMENTS_SCHEMA,
|
|
ChangeDetectionStrategy,
|
|
Component,
|
|
Input,
|
|
OnChanges
|
|
} from '@angular/core';
|
|
import { Type as ActivityType } from '@prisma/client';
|
|
|
|
@Component({
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
imports: [CommonModule],
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
selector: 'gf-activity-type',
|
|
standalone: true,
|
|
styleUrls: ['./activity-type.component.scss'],
|
|
templateUrl: './activity-type.component.html'
|
|
})
|
|
export class GfActivityTypeComponent implements OnChanges {
|
|
@Input() activityType: ActivityType;
|
|
|
|
public activityTypeLabel: string;
|
|
|
|
public constructor() {}
|
|
|
|
public ngOnChanges() {
|
|
this.activityTypeLabel = translate(this.activityType);
|
|
}
|
|
}
|