@shwfed/nuxt 0.1.73 → 0.1.74

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
3
  "configKey": "shwfed",
4
- "version": "0.1.73",
4
+ "version": "0.1.74",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -31,6 +31,7 @@ const {
31
31
  }
32
32
  } = useRuntimeConfig();
33
33
  useHead({
34
+ title: () => active.value && getTabLabel(active.value),
34
35
  bodyAttrs: {
35
36
  style: {
36
37
  "--primary": "#2DA8BC",
@@ -83,14 +84,6 @@ const isNavigationItemActive = (itemRoute) => isRouteActive(route.path, itemRout
83
84
  const getTabLabel = (tab) => {
84
85
  return resolveNavigationTitle(navigationItems.value, tab);
85
86
  };
86
- const activeTabLabel = computed(() => {
87
- if (active.value === void 0)
88
- return void 0;
89
- return getTabLabel(active.value);
90
- });
91
- useHead(() => ({
92
- title: activeTabLabel.value
93
- }));
94
87
  const profileName = computed(() => {
95
88
  if (config.profile.name === void 0)
96
89
  return t("profile");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",