adata-ui 2.1.8 → 2.1.9

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.
@@ -52,9 +52,21 @@ const currentMenuToShow = (index) => {
52
52
  }
53
53
  const toggleMenu = (index: number) => {
54
54
  if (index === 2) {
55
- window.open(buildLocalizedUrl(locale, landing, PAGES.tariffs), '_blank')
55
+ const pageUrl = useRequestURL()
56
+
57
+ let code = ''
58
+
59
+ if (pageUrl.hostname.includes('pk')) code = '?code=pk'
60
+ if (pageUrl.hostname.includes('avto')) code = '?code=auto'
61
+ if (pageUrl.hostname.includes('tnved')) code = '?code=ved'
62
+ if (pageUrl.hostname.includes('analytics-new')) code = '?code=analytics'
63
+ if (pageUrl.hostname.includes('ac')) code = '?code=compliance'
64
+ if (pageUrl.hostname.includes('zakupki')) code = '?code=procurement'
65
+ if (pageUrl.hostname.includes('edo')) code = '?code=edo'
66
+
67
+ navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.tariffs + code, target: '_blank' })
56
68
  } else if (index === 3) {
57
- window.open(buildLocalizedUrl(locale, landing, PAGES.api), '_blank')
69
+ navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.api, target: '_blank' })
58
70
  } else {
59
71
  currentMenu.value = currentMenuToShow(index)
60
72
  const prev = currentIndex.value
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.1.8",
4
+ "version": "2.1.9",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",