mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
- Fixed controller validation handling - Added microsoft365/graph mail driver - Improved password requirements (including breached password check) - Patched creating duplicate users by email in IAM - Patch env mapper - Vehicle/driver tracking API doesnt fire resource lifecycle events or log requests - only tracking events - Patched `<ModelCoordinatesInput />` component - Security patch on Storefront customers API - Styling updates on Storefront
28 lines
884 B
JavaScript
28 lines
884 B
JavaScript
import Component from '@glimmer/component';
|
|
import { tracked } from '@glimmer/tracking';
|
|
import { inject as service } from '@ember/service';
|
|
import { next } from '@ember/runloop';
|
|
|
|
export default class OnboardingYieldComponent extends Component {
|
|
@service('onboarding-orchestrator') orchestrator;
|
|
@service('onboarding-context') context;
|
|
@tracked initialized = false;
|
|
|
|
get currentComponent() {
|
|
return this.orchestrator.current && this.orchestrator.current.component;
|
|
}
|
|
|
|
constructor(owner, { step, session, code }) {
|
|
super(...arguments);
|
|
next(() => this.#initialize(step, session, code));
|
|
}
|
|
|
|
#initialize(step, session, code) {
|
|
if (step) this.orchestrator.goto(step);
|
|
if (session) this.context.persist('session', session);
|
|
if (code) this.context.set('code', code);
|
|
|
|
this.initialized = true;
|
|
}
|
|
}
|