wt-front-shared 19.0.10 → 19.0.11
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.
|
@@ -1852,17 +1852,22 @@ class LoginSendBehavior extends Behavior {
|
|
|
1852
1852
|
resolve() {
|
|
1853
1853
|
const status = this.result.data.status;
|
|
1854
1854
|
let returnedActions;
|
|
1855
|
-
console.log('LoginSendBehavior', this.result.data);
|
|
1856
1855
|
switch (status) {
|
|
1857
1856
|
case ResponseStatus.STATUS_200: {
|
|
1858
1857
|
const response = this.result.data;
|
|
1859
|
-
const
|
|
1858
|
+
const user = response.body?.user;
|
|
1859
|
+
const services = response.body?.services;
|
|
1860
1860
|
// const userData: UserModel = this.modelAdapter.convertItem<UserModel, UserModel>(UserModel, user);
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1861
|
+
if (user) {
|
|
1862
|
+
returnedActions = [
|
|
1863
|
+
LoginSendSuccess({ payload: { user, services } })
|
|
1864
|
+
];
|
|
1865
|
+
}
|
|
1866
|
+
else {
|
|
1867
|
+
returnedActions = [
|
|
1868
|
+
LoginSendFail({ payload: { error: 'incorrect-response' } })
|
|
1869
|
+
];
|
|
1870
|
+
}
|
|
1866
1871
|
break;
|
|
1867
1872
|
}
|
|
1868
1873
|
case ResponseStatus.STATUS_400:
|
|
@@ -3024,7 +3029,6 @@ class UsersEffects {
|
|
|
3024
3029
|
password,
|
|
3025
3030
|
formId
|
|
3026
3031
|
};
|
|
3027
|
-
console.log('config', config);
|
|
3028
3032
|
return this.usersService.loginSend(config)
|
|
3029
3033
|
.pipe(flatMap((r) => new LoginSendBehavior(action, r).resolve()));
|
|
3030
3034
|
}), catchError(error => of(LoginSendFail(error)))));
|
|
@@ -6518,7 +6522,6 @@ class AutoFormService extends BaseAutoFormService {
|
|
|
6518
6522
|
itemId = +form.get('id').value;
|
|
6519
6523
|
}
|
|
6520
6524
|
const type = options.type;
|
|
6521
|
-
console.log('itemValueExistsValidator', options, value);
|
|
6522
6525
|
// If the value for this type is checked before not need to do this checking again
|
|
6523
6526
|
if (this.validatorsData[type] && this.validatorsData[type].value === value && this.validatorsData[type].valid) {
|
|
6524
6527
|
return Promise.resolve();
|
|
@@ -8808,7 +8811,6 @@ class FormFieldSelectShowComponent {
|
|
|
8808
8811
|
}
|
|
8809
8812
|
}
|
|
8810
8813
|
getItemsFromStore(keyFromStore, ids) {
|
|
8811
|
-
console.log('[wt-front-shared][getItemsFromStore]', keyFromStore, ids);
|
|
8812
8814
|
this.coreFacade.getStoreByName(keyFromStore)
|
|
8813
8815
|
.pipe(untilComponentDestroyed(this))
|
|
8814
8816
|
.subscribe(items => {
|
|
@@ -10710,7 +10712,6 @@ class AutoFormMainComponent {
|
|
|
10710
10712
|
const newSubscription = this.formErrors.getFormErrors(this.formId)
|
|
10711
10713
|
.pipe(filter((errors) => !!(errors && errors.length)))
|
|
10712
10714
|
.subscribe((errors) => {
|
|
10713
|
-
console.log('subscribeToFormErrors.errors', errors);
|
|
10714
10715
|
if (errors && errors.length) {
|
|
10715
10716
|
errors.forEach(error => {
|
|
10716
10717
|
const { field, code } = error;
|
|
@@ -12261,7 +12262,6 @@ class StaticDataDetailsComponent {
|
|
|
12261
12262
|
this.currentUserData = this.authService.currentUserValue;
|
|
12262
12263
|
}
|
|
12263
12264
|
ngOnInit() {
|
|
12264
|
-
console.log('currentUserData', this.currentUserData);
|
|
12265
12265
|
this.matIconReg.setDefaultFontSetClass('material-symbols-outlined');
|
|
12266
12266
|
this.loadStaticDataConfiguration();
|
|
12267
12267
|
this.init();
|
|
@@ -12353,7 +12353,6 @@ class StaticDataDetailsComponent {
|
|
|
12353
12353
|
}
|
|
12354
12354
|
}).afterClosed().toPromise()
|
|
12355
12355
|
.then((result) => {
|
|
12356
|
-
console.log('result', result);
|
|
12357
12356
|
/*if (result) {
|
|
12358
12357
|
this.publicationMessagesFacade.unPublishPost('static-data', this.itemId, this.contentType);
|
|
12359
12358
|
}*/
|
|
@@ -14009,18 +14008,6 @@ class HeadersInterceptor {
|
|
|
14009
14008
|
else {
|
|
14010
14009
|
subRouting = urlParams2[3];
|
|
14011
14010
|
}
|
|
14012
|
-
console.log('header.updateRequestData', {
|
|
14013
|
-
endPointUrl,
|
|
14014
|
-
error,
|
|
14015
|
-
formId,
|
|
14016
|
-
subRouting,
|
|
14017
|
-
url: urlParams[1],
|
|
14018
|
-
method: httpMethod.toLowerCase(),
|
|
14019
|
-
itemId: itemIdOrSlug,
|
|
14020
|
-
status: RequestStatus.LOADED,
|
|
14021
|
-
secondEndPointUrl: secondEndPointUrl,
|
|
14022
|
-
data: errorData
|
|
14023
|
-
});
|
|
14024
14011
|
this.requestsFacade.updateRequestData({
|
|
14025
14012
|
endPointUrl,
|
|
14026
14013
|
error,
|