@etsoo/react 1.4.85 → 1.4.86
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.
package/lib/app/ServiceApp.d.ts
CHANGED
|
@@ -34,8 +34,9 @@ export declare class ServiceApp<U extends IServiceUser = IServiceUser, P extends
|
|
|
34
34
|
constructor(settings: S, name: string);
|
|
35
35
|
/**
|
|
36
36
|
* Go to the login page
|
|
37
|
+
* @param tryLogin Try to login again
|
|
37
38
|
*/
|
|
38
|
-
toLoginPage(): void;
|
|
39
|
+
toLoginPage(tryLogin?: boolean): void;
|
|
39
40
|
/**
|
|
40
41
|
* Refresh token
|
|
41
42
|
* @param props Props
|
package/lib/app/ServiceApp.js
CHANGED
|
@@ -41,8 +41,9 @@ export class ServiceApp extends ReactApp {
|
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Go to the login page
|
|
44
|
+
* @param tryLogin Try to login again
|
|
44
45
|
*/
|
|
45
|
-
toLoginPage() {
|
|
46
|
+
toLoginPage(tryLogin) {
|
|
46
47
|
const coreUrl = this.settings.webUrl;
|
|
47
48
|
window.location.href =
|
|
48
49
|
coreUrl +
|
|
@@ -51,7 +52,8 @@ export class ServiceApp extends ReactApp {
|
|
|
51
52
|
'&' +
|
|
52
53
|
DomUtils.CultureField +
|
|
53
54
|
'=' +
|
|
54
|
-
this.culture
|
|
55
|
+
this.culture +
|
|
56
|
+
(tryLogin ? '' : '&tryLogin=false');
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* Refresh token
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.86",
|
|
4
4
|
"description": "TypeScript ReactJs framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"@emotion/style": "^0.8.0",
|
|
52
52
|
"@emotion/styled": "^11.6.0",
|
|
53
|
-
"@etsoo/appscript": "^1.2.
|
|
53
|
+
"@etsoo/appscript": "^1.2.34",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.1",
|
|
55
55
|
"@etsoo/shared": "^1.1.9",
|
|
56
56
|
"@mui/icons-material": "^5.3.1",
|
package/src/app/ServiceApp.ts
CHANGED
|
@@ -69,8 +69,9 @@ export class ServiceApp<
|
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Go to the login page
|
|
72
|
+
* @param tryLogin Try to login again
|
|
72
73
|
*/
|
|
73
|
-
override toLoginPage() {
|
|
74
|
+
override toLoginPage(tryLogin?: boolean) {
|
|
74
75
|
const coreUrl = this.settings.webUrl;
|
|
75
76
|
window.location.href =
|
|
76
77
|
coreUrl +
|
|
@@ -79,7 +80,8 @@ export class ServiceApp<
|
|
|
79
80
|
'&' +
|
|
80
81
|
DomUtils.CultureField +
|
|
81
82
|
'=' +
|
|
82
|
-
this.culture
|
|
83
|
+
this.culture +
|
|
84
|
+
(tryLogin ? '' : '&tryLogin=false');
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
/**
|