diff --git a/package-lock.json b/package-lock.json
index a092a065..7f767146 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -26,7 +26,7 @@
"@vality/domain-proto": "2.0.1-45b0719.0",
"@vality/fistful-proto": "2.0.1-3b9a0a7.0",
"@vality/magista-proto": "2.0.2-4383410.0",
- "@vality/ng-core": "16.2.1-pr-49-6a1a300.0",
+ "@vality/ng-core": "16.2.1-pr-49-05562a6.0",
"@vality/payout-manager-proto": "2.0.1-eb4091a.0",
"@vality/repairer-proto": "2.0.2-07b73e9.0",
"@vality/thrift-ts": "2.4.1-8ad5123.0",
@@ -5966,9 +5966,9 @@
"integrity": "sha512-kAiKSTvof+jFuNkQKyAsc2s+Br2NXPWAyKuD0f7mQIk9HrP8uHsKJya5KxdOdng97JYe0MSUlx7seQxWmCgYfA=="
},
"node_modules/@vality/ng-core": {
- "version": "16.2.1-pr-49-6a1a300.0",
- "resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-16.2.1-pr-49-6a1a300.0.tgz",
- "integrity": "sha512-ZIJtxfBqfqyMbjtt1OUJwEzGJxI2sIBYVldn/LXKB1WqK3rICfmwQL1tannuVD1SD8z41sW5cC/70W/ax/FZxQ==",
+ "version": "16.2.1-pr-49-05562a6.0",
+ "resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-16.2.1-pr-49-05562a6.0.tgz",
+ "integrity": "sha512-QUkFbN+e2BgfWnyVpaEVHqJJotcmBLgaoznoJo+smGz8JBje0UdGUxX8lroqRMJ2flZ8gprEO9iqBRZwGqpN5A==",
"dependencies": {
"@angular/material-date-fns-adapter": "^16.0.0",
"@ng-matero/extensions": "^16.0.0",
diff --git a/package.json b/package.json
index 8c60a83c..158d3dd1 100644
--- a/package.json
+++ b/package.json
@@ -34,7 +34,7 @@
"@vality/domain-proto": "2.0.1-45b0719.0",
"@vality/fistful-proto": "2.0.1-3b9a0a7.0",
"@vality/magista-proto": "2.0.2-4383410.0",
- "@vality/ng-core": "16.2.1-pr-49-6a1a300.0",
+ "@vality/ng-core": "16.2.1-pr-49-05562a6.0",
"@vality/payout-manager-proto": "2.0.1-eb4091a.0",
"@vality/repairer-proto": "2.0.2-07b73e9.0",
"@vality/thrift-ts": "2.4.1-8ad5123.0",
diff --git a/src/app/sections/domain/domain-info/domain-group/domain-group.component.html b/src/app/sections/domain/domain-info/domain-group/domain-group.component.html
index 1ba087f8..75254e70 100644
--- a/src/app/sections/domain/domain-info/domain-group/domain-group.component.html
+++ b/src/app/sections/domain/domain-info/domain-group/domain-group.component.html
@@ -1,10 +1,11 @@
-
+
Search
diff --git a/src/app/sections/domain/domain-info/domain-info.component.ts b/src/app/sections/domain/domain-info/domain-info.component.ts
index 1cf8dc59..215d858c 100644
--- a/src/app/sections/domain/domain-info/domain-info.component.ts
+++ b/src/app/sections/domain/domain-info/domain-info.component.ts
@@ -59,7 +59,9 @@ export class DomainInfoComponent {
) {}
edit() {
- void this.router.navigate(['domain', 'edit', JSON.stringify(this.objWithRef.ref)]);
+ void this.router.navigate(['domain', 'edit'], {
+ queryParams: { ref: JSON.stringify(this.objWithRef.ref) },
+ });
}
delete() {
diff --git a/src/app/sections/domain/domain-obj-modification/domain-obj-modification.component.ts b/src/app/sections/domain/domain-obj-modification/domain-obj-modification.component.ts
index 0f17c0c6..52d9dfb9 100644
--- a/src/app/sections/domain/domain-obj-modification/domain-obj-modification.component.ts
+++ b/src/app/sections/domain/domain-obj-modification/domain-obj-modification.component.ts
@@ -61,7 +61,7 @@ export class DomainObjModificationComponent implements OnInit {
this.domainObjModService.object$.pipe(first(), untilDestroyed(this)).subscribe((object) => {
if (
this.modifiedDomainObjectService.domainObject &&
- this.route.snapshot.params.ref === this.modifiedDomainObjectService.ref
+ this.route.snapshot.queryParams.ref === this.modifiedDomainObjectService.ref
) {
this.control.setValue(this.modifiedDomainObjectService.domainObject);
} else {
@@ -71,8 +71,13 @@ export class DomainObjModificationComponent implements OnInit {
}
reviewChanges() {
- this.modifiedDomainObjectService.update(this.control.value, this.route.snapshot.params.ref);
- void this.router.navigate(['domain', 'edit', this.route.snapshot.params.ref, 'review']);
+ this.modifiedDomainObjectService.update(
+ this.control.value,
+ this.route.snapshot.queryParams.ref,
+ );
+ void this.router.navigate(['domain', 'review'], {
+ queryParams: { ref: this.route.snapshot.queryParams.ref },
+ });
}
backToDomain() {
diff --git a/src/app/sections/domain/domain-obj-review/domain-obj-review.component.ts b/src/app/sections/domain/domain-obj-review/domain-obj-review.component.ts
index 1db0ce83..fccace06 100644
--- a/src/app/sections/domain/domain-obj-review/domain-obj-review.component.ts
+++ b/src/app/sections/domain/domain-obj-review/domain-obj-review.component.ts
@@ -76,6 +76,8 @@ export class DomainObjReviewComponent {
}
back() {
- void this.router.navigate(['domain', 'edit', this.route.snapshot.params.ref]);
+ void this.router.navigate(['domain', 'edit'], {
+ queryParams: { ref: this.route.snapshot.queryParams.ref },
+ });
}
}
diff --git a/src/app/sections/domain/domain-routing.module.ts b/src/app/sections/domain/domain-routing.module.ts
index c270b01a..d990c482 100644
--- a/src/app/sections/domain/domain-routing.module.ts
+++ b/src/app/sections/domain/domain-routing.module.ts
@@ -26,11 +26,11 @@ import { ROUTING_CONFIG } from './routing-config';
component: DomainObjCreationComponent,
},
{
- path: 'edit/:ref',
+ path: 'edit',
component: DomainObjModificationComponent,
},
{
- path: 'edit/:ref/review',
+ path: 'review',
component: DomainObjReviewComponent,
},
],
diff --git a/src/app/sections/domain/services/domain-obj-modification.service.ts b/src/app/sections/domain/services/domain-obj-modification.service.ts
index a9382da1..933f698e 100644
--- a/src/app/sections/domain/services/domain-obj-modification.service.ts
+++ b/src/app/sections/domain/services/domain-obj-modification.service.ts
@@ -25,7 +25,7 @@ export class DomainObjModificationService {
shareReplay({ refCount: true, bufferSize: 1 }),
);
- private ref$ = this.route.params.pipe(
+ private ref$ = this.route.queryParams.pipe(
map(({ ref }) => {
try {
return JSON.parse(ref as string) as Reference;
diff --git a/src/app/sections/payments/payments.component.html b/src/app/sections/payments/payments.component.html
index db62ffd3..6be9f190 100644
--- a/src/app/sections/payments/payments.component.html
+++ b/src/app/sections/payments/payments.component.html
@@ -44,10 +44,10 @@
diff --git a/src/app/sections/payouts/payouts/components/create-payout-dialog/create-payout-dialog.component.html b/src/app/sections/payouts/payouts/components/create-payout-dialog/create-payout-dialog.component.html
index 0162b930..1225e9c8 100644
--- a/src/app/sections/payouts/payouts/components/create-payout-dialog/create-payout-dialog.component.html
+++ b/src/app/sections/payouts/payouts/components/create-payout-dialog/create-payout-dialog.component.html
@@ -1,5 +1,5 @@
-
+
-
+
+
Type
@@ -8,7 +8,10 @@
-
+
Same
Different
diff --git a/src/app/sections/repairing/repairing.component.html b/src/app/sections/repairing/repairing.component.html
index 8e6e4942..9b7cf5c0 100644
--- a/src/app/sections/repairing/repairing.component.html
+++ b/src/app/sections/repairing/repairing.component.html
@@ -1,6 +1,9 @@
-
+
Namespace
diff --git a/src/app/sections/withdrawals/components/create-adjustment-dialog/create-adjustment-dialog.component.html b/src/app/sections/withdrawals/components/create-adjustment-dialog/create-adjustment-dialog.component.html
index 1c96899d..a7715a41 100644
--- a/src/app/sections/withdrawals/components/create-adjustment-dialog/create-adjustment-dialog.component.html
+++ b/src/app/sections/withdrawals/components/create-adjustment-dialog/create-adjustment-dialog.component.html
@@ -1,6 +1,9 @@
-
-
+
+
Use ID from withdrawal
Generate ID
diff --git a/src/app/shared/components/change-chargebacks-status-dialog/change-chargebacks-status-dialog.component.html b/src/app/shared/components/change-chargebacks-status-dialog/change-chargebacks-status-dialog.component.html
index a2f0c2eb..e6b2be51 100644
--- a/src/app/shared/components/change-chargebacks-status-dialog/change-chargebacks-status-dialog.component.html
+++ b/src/app/shared/components/change-chargebacks-status-dialog/change-chargebacks-status-dialog.component.html
@@ -6,7 +6,7 @@
: dialogData.chargebacks.length + ' chargebacks'
}} status"
>
-
+
Action
diff --git a/src/app/shared/components/json-viewer/json-viewer.component.html b/src/app/shared/components/json-viewer/json-viewer.component.html
index f2f952ec..077bd35e 100644
--- a/src/app/shared/components/json-viewer/json-viewer.component.html
+++ b/src/app/shared/components/json-viewer/json-viewer.component.html
@@ -1,14 +1,20 @@
-
+
@@ -30,8 +36,12 @@
0 || (view.leaves$ | async)?.length">
const values = this.valueControls.value;
switch (this.data.type.name) {
case 'list':
- this.emitOutgoingValue(values);
+ this.emitOutgoingValue(values.length ? values : null);
break;
case 'map': {
const keys = this.keyControls.value;
- this.emitOutgoingValue(new Map(values.map((v, idx) => [keys[idx], v])));
+ this.emitOutgoingValue(
+ keys.length ? new Map(values.map((v, idx) => [keys[idx], v])) : null,
+ );
break;
}
case 'set':
- this.emitOutgoingValue(new Set(values));
+ this.emitOutgoingValue(values.length ? new Set(values) : null);
break;
}
});
diff --git a/src/app/shared/components/metadata-form/components/primitive-field/primitive-field.component.html b/src/app/shared/components/metadata-form/components/primitive-field/primitive-field.component.html
index 7d273372..d3147e25 100644
--- a/src/app/shared/components/metadata-form/components/primitive-field/primitive-field.component.html
+++ b/src/app/shared/components/metadata-form/components/primitive-field/primitive-field.component.html
@@ -12,15 +12,15 @@
>
False
True