mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-09 07:35:13 +00:00
* feat: support list milestones api * show milestones in onboarding view * add authenticated milestone * add icon to login milestone * update main * lint * fix import * fix import * lint * reuse proto milestone type mapping
27 lines
939 B
TypeScript
27 lines
939 B
TypeScript
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
|
|
import { BehaviorSubject } from 'rxjs';
|
|
import { AdminService } from 'src/app/services/admin.service';
|
|
import { ONBOARDING_MILESTONES } from 'src/app/utils/onboarding';
|
|
|
|
@Component({
|
|
selector: 'cnsl-onboarding-card',
|
|
templateUrl: './onboarding-card.component.html',
|
|
styleUrls: ['./onboarding-card.component.scss'],
|
|
})
|
|
export class OnboardingCardComponent implements OnInit {
|
|
public percentageChanged: EventEmitter<number> = new EventEmitter<number>();
|
|
public loading$: BehaviorSubject<any> = new BehaviorSubject(false);
|
|
public actions = this.adminService.progressMilestones;
|
|
@Output() public dismissedCard: EventEmitter<void> = new EventEmitter();
|
|
|
|
constructor(public adminService: AdminService) {}
|
|
|
|
public dismiss(): void {
|
|
this.dismissedCard.emit();
|
|
}
|
|
|
|
ngOnInit() {
|
|
this.adminService.loadMilestones.next(ONBOARDING_MILESTONES);
|
|
}
|
|
}
|