c135e1a85f
- Replaced individual state properties (loading, error, entity, initialized, isRefreshing) with a spread of defaultBaseStateData in various entity stores including AccountStore, BusinessActivityStore, ConsumerComplexStore, PosStore, and others. - Updated imports to include defaultBaseStateData in relevant store files. - Enhanced consistency in state management across multiple stores. feat: add partner profile management components and services - Introduced PartnerProfileFormComponent and PartnerResetPasswordCardComponent for profile editing and password reset functionalities. - Created ProfileService to handle API interactions for partner profile management. - Added routes and constants for partner profile API and navigation. - Implemented UI components for displaying and editing partner profile information in single.component.html and single.component.ts.
16 lines
594 B
HTML
16 lines
594 B
HTML
<div class="flex flex-col gap-4">
|
|
<app-card-data cardTitle="اطلاعات پروفایل" [editable]="true" [(editMode)]="editing">
|
|
<div class="listKeyValue">
|
|
<app-key-value label="تصویر" [value]="profile()?.logo_url" type="thumbnail" />
|
|
<app-key-value label="عنوان" [value]="profile()?.name" />
|
|
<app-key-value label="کد" [value]="profile()?.code" />
|
|
</div>
|
|
</app-card-data>
|
|
|
|
<partner-reset-password-card />
|
|
|
|
@if (editing()) {
|
|
<partner-profile-form [(visible)]="editing" [initialValues]="profile()!" (onSubmit)="onEditSuccess()" />
|
|
}
|
|
</div>
|