@@ -20,4 +23,10 @@
[initialValues]="partner() || undefined"
(onSubmit)="getData()"
/>
+
+
diff --git a/src/app/domains/superAdmin/modules/partners/views/single.component.ts b/src/app/domains/superAdmin/modules/partners/views/single.component.ts
index 514f2ed..773a077 100644
--- a/src/app/domains/superAdmin/modules/partners/views/single.component.ts
+++ b/src/app/domains/superAdmin/modules/partners/views/single.component.ts
@@ -2,7 +2,9 @@ import { BreadcrumbService } from '@/core/services';
import { AppCardComponent, KeyValueComponent } from '@/shared/components';
import { Component, computed, effect, inject, signal } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
+import { Button } from 'primeng/button';
import { ConsumerAccountListComponent } from '../components/accounts/list.component';
+import { PartnerChargeLicenseFormDialogComponent } from '../components/charge-license-form-dialog.component';
import { GuildFormComponent } from '../components/form.component';
import { superAdminPartnersNamedRoutes } from '../constants';
import { PartnerStore } from '../store/partner.store';
@@ -10,7 +12,14 @@ import { PartnerStore } from '../store/partner.store';
@Component({
selector: 'app-user',
templateUrl: './single.component.html',
- imports: [AppCardComponent, KeyValueComponent, GuildFormComponent, ConsumerAccountListComponent],
+ imports: [
+ AppCardComponent,
+ KeyValueComponent,
+ GuildFormComponent,
+ ConsumerAccountListComponent,
+ Button,
+ PartnerChargeLicenseFormDialogComponent,
+ ],
})
export class PartnerComponent {
private readonly store = inject(PartnerStore);
@@ -22,6 +31,7 @@ export class PartnerComponent {
readonly loading = computed(() => this.store.loading());
readonly partner = computed(() => this.store.entity());
+ visibleChargeFormDialog = signal(false);
constructor() {
effect(() => {
@@ -46,4 +56,8 @@ export class PartnerComponent {
},
]);
}
+
+ openChargeDialog() {
+ this.visibleChargeFormDialog.set(true);
+ }
}
diff --git a/src/app/shared/components/input/input.component.html b/src/app/shared/components/input/input.component.html
index 5e62b87..66d3736 100644
--- a/src/app/shared/components/input/input.component.html
+++ b/src/app/shared/components/input/input.component.html
@@ -31,8 +31,13 @@
[attr.maxlength]="preparedMaxLength || null"
[attr.type]="htmlType"
[attr.autocomplete]="autocomplete"
- [class]="
- `${inputClass} w-full ${size === 'large' ? 'p-inputtext-lg' : size === 'small' ? 'p-inputtext-sm' : ''}`
+ [classList]="
+ [
+ inputClass,
+ 'w-full',
+ `${size === 'large' ? 'p-inputtext-lg' : size === 'small' ? 'p-inputtext-sm' : ''}`,
+ suffixTemp || preparedSuffix() ? 'hasSuffix' : '',
+ ].join(' ')
"
[required]="isRequired"
[invalid]="control.invalid && (control.touched || control.dirty)"
diff --git a/src/app/shared/components/input/input.component.ts b/src/app/shared/components/input/input.component.ts
index f553fca..ce48179 100644
--- a/src/app/shared/components/input/input.component.ts
+++ b/src/app/shared/components/input/input.component.ts
@@ -224,9 +224,9 @@ export class InputComponent {
// @ts-ignore
$event.target.value = newValue;
}
-
- this.control.setValue(newValue);
}
+ if (!['nationalId', 'phone', 'postalCode', 'mobile'].includes(this.type))
+ this.control.setValue(newValue);
}
if (this.preparedMaxLength && this.preparedMaxLength < value.length) {