@posiwise/user-module 0.0.187 → 0.0.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,6 +48,8 @@ import { Store } from "@ngrx/store";
|
|
|
48
48
|
import { HttpErrorResponse } from "@angular/common/http";
|
|
49
49
|
import { Clipboard } from "@angular/cdk/clipboard";
|
|
50
50
|
import { AdminService, AppAdmin } from "@posiwise/admin-module-utils";
|
|
51
|
+
import { IconField } from "primeng/iconfield";
|
|
52
|
+
import { InputIcon } from "primeng/inputicon";
|
|
51
53
|
import { ResizableColumn, SortIcon, SortableColumn, Table } from "primeng/table";
|
|
52
54
|
import { Ripple } from "primeng/ripple";
|
|
53
55
|
import moment from "moment";
|
|
@@ -2832,11 +2834,10 @@ var UpgradeSubscriptionComponent = class UpgradeSubscriptionComponent extends Ap
|
|
|
2832
2834
|
}
|
|
2833
2835
|
getCardDetails(subscriptionId) {
|
|
2834
2836
|
this.subscriptionService.getCardDetails(subscriptionId).subscribe(({ result }) => {
|
|
2835
|
-
this.cardDetails = result
|
|
2837
|
+
this.cardDetails = result?.data ?? null;
|
|
2836
2838
|
this.form.patchValue({
|
|
2837
2839
|
units: this.units,
|
|
2838
2840
|
card_number: this.cardDetails?.card_number,
|
|
2839
|
-
cvc: this.cardDetails?.cvc,
|
|
2840
2841
|
exp_month: this.cardDetails?.exp_month || "",
|
|
2841
2842
|
exp_year: this.cardDetails?.exp_year || ""
|
|
2842
2843
|
});
|
|
@@ -4453,6 +4454,18 @@ var UserInvoiceComponent = class UserInvoiceComponent extends AppBaseComponent {
|
|
|
4453
4454
|
"invalid"
|
|
4454
4455
|
]
|
|
4455
4456
|
},
|
|
4457
|
+
{
|
|
4458
|
+
kind: "component",
|
|
4459
|
+
type: IconField,
|
|
4460
|
+
selector: "p-iconfield, p-icon-field",
|
|
4461
|
+
inputs: ["hostName", "iconPosition"]
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
kind: "component",
|
|
4465
|
+
type: InputIcon,
|
|
4466
|
+
selector: "p-inputicon",
|
|
4467
|
+
inputs: ["hostName"]
|
|
4468
|
+
},
|
|
4456
4469
|
{
|
|
4457
4470
|
kind: "directive",
|
|
4458
4471
|
type: ResizableColumn,
|
|
@@ -4560,6 +4573,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4560
4573
|
Table,
|
|
4561
4574
|
FormsModule,
|
|
4562
4575
|
InputText,
|
|
4576
|
+
IconField,
|
|
4577
|
+
InputIcon,
|
|
4563
4578
|
ResizableColumn,
|
|
4564
4579
|
SortableColumn,
|
|
4565
4580
|
SortIcon,
|
|
@@ -7911,7 +7926,7 @@ var UserAboutComponent = class UserAboutComponent extends AppBaseComponent {
|
|
|
7911
7926
|
this.user_profile = response.user_profile.result;
|
|
7912
7927
|
this.user["profile"] = this.user_profile;
|
|
7913
7928
|
this.qualifications = response.qualifications.result;
|
|
7914
|
-
this.userLinks = response.user_links.result
|
|
7929
|
+
this.userLinks = response.user_links.result ?? {};
|
|
7915
7930
|
this.noUserLinks = Object.values(this.userLinks).some((x) => !!x);
|
|
7916
7931
|
this.selectedSkills = response.user_skills.result;
|
|
7917
7932
|
this.loading = false;
|