@kestra-io/ui-libs 0.0.250 → 0.0.251

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": "@kestra-io/ui-libs",
3
- "version": "0.0.250",
3
+ "version": "0.0.251",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -50,6 +50,7 @@
50
50
  pluginName: string,
51
51
  subGroup?: string | undefined,
52
52
  icons: Record<string, string>
53
+ routePath?: string
53
54
  }>();
54
55
 
55
56
  const plugin = computed(() => props.plugins.find(p => props.subGroup === undefined ? true : (slugify(subGroupName(p)) === props.subGroup)) as Plugin);
@@ -68,7 +69,8 @@
68
69
  return split?.[split.length - 1];
69
70
  }
70
71
 
71
- const {path} = useRoute();
72
+ const route = useRoute();
73
+ const path = route?.path ?? props.routePath;
72
74
 
73
75
  const subGroupHref = (targetSubGroup: string) => `${path}/${slugify(targetSubGroup)}`;
74
76