init to partner panel

This commit is contained in:
2026-04-13 15:47:50 +03:30
parent af3123e61e
commit 9eb5c35285
45 changed files with 806 additions and 12 deletions
@@ -0,0 +1,26 @@
import { PageLoadingComponent } from '@/shared/components/page-loading.component';
import { Component, computed, inject, signal } from '@angular/core';
import { ActivatedRoute, RouterOutlet } from '@angular/router';
import { PartnerCustomerStore } from '../store/customer.store';
@Component({
selector: 'partner-customer-layout',
templateUrl: './layout.component.html',
imports: [PageLoadingComponent, RouterOutlet],
})
export class PartnerCustomerLayoutComponent {
private readonly route = inject(ActivatedRoute);
private readonly store = inject(PartnerCustomerStore);
readonly customerId = signal<string>(this.route.snapshot.paramMap.get('customerId')!);
readonly loading = computed(() => this.store.loading());
getData() {
this.store.getData(this.customerId());
}
ngOnInit() {
this.getData();
}
}