@vc-shell/framework 1.1.61 → 1.1.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -85,9 +85,9 @@
85
85
  "@fullhuman/postcss-purgecss": "^7.0.2",
86
86
  "@laynezh/vite-plugin-lib-assets": "v1.1.0",
87
87
  "@types/dompurify": "^3.0.5",
88
- "@vc-shell/api-client-generator": "^1.1.61",
89
- "@vc-shell/config-generator": "^1.1.61",
90
- "@vc-shell/ts-config": "^1.1.61",
88
+ "@vc-shell/api-client-generator": "^1.1.62",
89
+ "@vc-shell/config-generator": "^1.1.62",
90
+ "@vc-shell/ts-config": "^1.1.62",
91
91
  "@vitejs/plugin-vue": "^5.2.3",
92
92
  "@vue/test-utils": "^2.4.5",
93
93
  "cypress-signalr-mock": "^1.5.0",
@@ -36,7 +36,7 @@
36
36
  <script lang="ts" setup>
37
37
  import { GenericDropdown } from "../generic-dropdown";
38
38
  import { useTheme } from "../../../core/composables/useTheme";
39
- import { ref, watch } from "vue";
39
+ import { ref } from "vue";
40
40
  import { notification } from "..";
41
41
  import { SettingsMenuItem } from "../settings-menu-item";
42
42
  import { VcIcon } from "../../../ui/components";
@@ -47,16 +47,11 @@ const opened = ref(false);
47
47
  const handleThemeSelect = (theme: { key: string; name: string }) => {
48
48
  setTheme(theme.key);
49
49
  opened.value = false;
50
- };
51
50
 
52
- watch(
53
- () => currentLocalizedName.value,
54
- (newLocalizedName) => {
55
- if (newLocalizedName) {
56
- notification(newLocalizedName);
57
- }
58
- },
59
- );
51
+ if (currentLocalizedName.value) {
52
+ notification(currentLocalizedName.value);
53
+ }
54
+ };
60
55
  </script>
61
56
 
62
57
  <style lang="scss">
@@ -7,7 +7,7 @@
7
7
  <template
8
8
  v-if="!expand"
9
9
  #tooltip
10
- >{{ title }}</template
10
+ >{{ $t(title ?? "") }}</template
11
11
  >
12
12
  <div
13
13
  class="vc-app-menu-link__item"
@@ -43,7 +43,7 @@
43
43
  class="vc-app-menu-link__title"
44
44
  >
45
45
  <div class="vc-app-menu-link__title-truncate">
46
- {{ title }}
46
+ {{ $t(title ?? "") }}
47
47
  </div>
48
48
  <div
49
49
  v-if="(!!children?.length && expand) || false"
@@ -76,7 +76,7 @@
76
76
  <template
77
77
  v-if="!expand"
78
78
  #tooltip
79
- >{{ nested.title }}</template
79
+ >{{ $t(nested.title) }}</template
80
80
  >
81
81
  <router-link
82
82
  v-if="$hasAccess(nested.permissions!) && nested.url"
@@ -126,7 +126,7 @@
126
126
  'vc-app-menu-link__child-item-title--no-icon': !nested.icon,
127
127
  }"
128
128
  >
129
- {{ nested.title }}
129
+ {{ $t(nested.title) }}
130
130
  </p>
131
131
  </Transition>
132
132
  </div>