You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Umbraco.Cms.Integrations.Crm.Dynamics/Client/src/config/authorization/authorization-property-editor.element.ts
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ export class DynamicsAuthorizationElement extends UmbElementMixin(LitElement){
22
22
@state()
23
23
private_loading: boolean=true;
24
24
25
+
@state()
26
+
private_userName: string|undefined="";
27
+
25
28
constructor(){
26
29
super();
27
30
@@ -53,6 +56,8 @@ export class DynamicsAuthorizationElement extends UmbElementMixin(LitElement){
53
56
isAccessTokenExpired: false,
54
57
isAccessTokenValid: true
55
58
}
59
+
60
+
this._userName=this.#settingsModel.fullName;
56
61
}
57
62
58
63
this._loading=false;
@@ -95,6 +100,9 @@ export class DynamicsAuthorizationElement extends UmbElementMixin(LitElement){
95
100
};
96
101
this._showSuccess("OAuth Connected");
97
102
103
+
const{ data }=awaitthis.#dynamicsContext.getSystemUserFullName();
104
+
this._userName=data;
105
+
98
106
this.dispatchEvent(newCustomEvent("connect"));
99
107
}
100
108
}
@@ -136,7 +144,7 @@ export class DynamicsAuthorizationElement extends UmbElementMixin(LitElement){
0 commit comments