adata-ui 2.1.26 → 2.1.27

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.
@@ -8,7 +8,7 @@ import ContactMenu from '#adata-ui/components/navigation/header/ContactMenu.vue'
8
8
  import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
9
9
  import { useUrls } from '#adata-ui/composables/useUrls'
10
10
 
11
- const { landing } = useUrls()
11
+ const { landing, pk } = useUrls()
12
12
  const { t, locale } = useI18n()
13
13
 
14
14
  const navs: any = [
@@ -28,12 +28,18 @@ const navs: any = [
28
28
  label: 'header.navs.api',
29
29
  to: landing + PAGES.api
30
30
  },
31
- {
32
- label: 'header.navs.services',
33
- to: landing + PAGES.services
34
- }
35
31
  ]
36
32
 
33
+ const pageUrl = useRequestURL()
34
+ if (pageUrl.hostname.startsWith('pk')) {
35
+ navs.push(
36
+ {
37
+ label: 'header.navs.services',
38
+ to: pk + PAGES.services + '/kgd'
39
+ }
40
+ )
41
+ }
42
+
37
43
  const menu = ref<HTMLElement | null>(null)
38
44
  const isBodyAlreadyLocked = ref<boolean>(false)
39
45
  const currentIndex = ref(0)
@@ -73,7 +79,7 @@ const toggleMenu = (index: number) => {
73
79
  navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.api, target: '_blank' })
74
80
  }
75
81
  else if (index === 4) {
76
- navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.services, target: '_blank' })
82
+ navigateToLocalizedPage({ locale, projectUrl: pk, path: PAGES.services + '/kgd', target: '_blank' })
77
83
  }
78
84
  else {
79
85
  currentMenu.value = currentMenuToShow(index)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.1.26",
4
+ "version": "2.1.27",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -10,7 +10,7 @@ export const PAGES = {
10
10
  favourites: '/favourites',
11
11
  totalServices: '/total-services',
12
12
  allServices: '/all-services',
13
- services: '/counterparty-service',
13
+ services: '/services',
14
14
  profile: {
15
15
  index: '/profile',
16
16
  security: '/profile/change-password',