@xh/hoist 73.0.0-SNAPSHOT.1747181587236 → 73.0.0-SNAPSHOT.1747231011044
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/appcontainer/AppContainerModel.ts +4 -0
- package/build/types/appcontainer/AppContainerModel.d.ts +1 -0
- package/desktop/appcontainer/VersionBar.ts +1 -1
- package/desktop/cmp/button/AppMenuButton.ts +1 -1
- package/desktop/cmp/button/LaunchAdminButton.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -343,6 +343,10 @@ export class AppContainerModel extends HoistModel {
|
|
|
343
343
|
return !isEmpty(this.aboutDialogModel.getItems());
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
+
openAdmin() {
|
|
347
|
+
XH.openWindow('/admin', XH.appCode + '_xhAdmin');
|
|
348
|
+
}
|
|
349
|
+
|
|
346
350
|
//----------------------------
|
|
347
351
|
// Implementation
|
|
348
352
|
//-----------------------------
|
|
@@ -55,7 +55,7 @@ export const versionBar = hoistCmp.factory({
|
|
|
55
55
|
Icon.wrench({
|
|
56
56
|
omit: isAdminApp || !XH.getUser().isHoistAdminReader,
|
|
57
57
|
title: 'Open Admin Console',
|
|
58
|
-
onClick: () => XH.
|
|
58
|
+
onClick: () => XH.appContainerModel.openAdmin()
|
|
59
59
|
})
|
|
60
60
|
]
|
|
61
61
|
});
|
|
@@ -143,7 +143,7 @@ function buildMenuItems(props: AppMenuButtonProps) {
|
|
|
143
143
|
omit: hideAdminItem,
|
|
144
144
|
text: 'Admin',
|
|
145
145
|
icon: Icon.wrench(),
|
|
146
|
-
actionFn: () => XH.
|
|
146
|
+
actionFn: () => XH.appContainerModel.openAdmin()
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
omit: hideImpersonateItem,
|
|
@@ -25,7 +25,7 @@ export const [LaunchAdminButton, launchAdminButton] = hoistCmp.withFactory<Launc
|
|
|
25
25
|
ref,
|
|
26
26
|
icon: Icon.wrench(),
|
|
27
27
|
title: 'Launch admin client...',
|
|
28
|
-
onClick: () => XH.
|
|
28
|
+
onClick: () => XH.appContainerModel.openAdmin(),
|
|
29
29
|
...props
|
|
30
30
|
});
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "73.0.0-SNAPSHOT.
|
|
3
|
+
"version": "73.0.0-SNAPSHOT.1747231011044",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|