@orsetra/shared-ui 1.1.23 → 1.1.25

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.
@@ -43,21 +43,12 @@ export function MainSidebar({
43
43
  onSecondarySidebarOpen()
44
44
  }
45
45
 
46
- const subMenus = sidebarMenus[menuId]
47
- if (subMenus && subMenus.length > 0) {
48
- const targetUrl = subMenus[0].href
49
- const path = targetUrl.startsWith('http://') || targetUrl.startsWith('https://')
50
- ? new URL(targetUrl).pathname
51
- : targetUrl
52
- window.location.href = path
53
- } else {
54
46
  const targetUrl = `${main_base_url}/${menuId}`
55
47
  const path = targetUrl.startsWith('http://') || targetUrl.startsWith('https://')
56
48
  ? new URL(targetUrl).pathname
57
49
  : targetUrl
58
50
  window.location.href = path
59
- }
60
-
51
+
61
52
  if (!isMinimized) {
62
53
  onToggle()
63
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",
package/utils/common.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import moment from 'moment';
2
2
 
3
- import type { AddonBaseStatus } from '@/api';
3
+ import type { AddonBaseStatus } from '../api';
4
4
 
5
5
  type Navigator = {
6
6
  language: string;
@@ -1,4 +1,4 @@
1
- import type { LoginUserInfo, PermissionBase } from '@/api';
1
+ import type { LoginUserInfo, PermissionBase } from '../api';
2
2
 
3
3
  export interface ResourceAction {
4
4
  resource: string;
package/utils/utils.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import _ from 'lodash';
2
2
 
3
- import type { ComponentDefinitionsBase,Endpoint } from '@/api';
3
+ import type { ComponentDefinitionsBase, Endpoint } from '../api';
4
4
 
5
5
  type SelectGroupType = Array<{
6
6
  label: string;