Overlapping of Navigation Menu items of Two different seed plugins.
Closed this issue · 5 comments
Describe the bug
We recently developed and deployed a UI plugin for the vCD provider UI. This plugin enables information rendering in an iframe when accessed through the "More > Documentation" option. However, we have encountered an issue when attempting to deploy another plugin that offers redirections when we click that More > FooBar item. When both plugins are published simultaneously, the menu item name and functionality of the first-deployed plugin become overlapped.
We are currently investigating whether this is a bug, and exploring options for combining the functionality of both plugins into a single, cohesive plugin.
Hey @cs-chandu check your localisation files of both plug-ins, the localisation files are in JSON format and the keys must be unique for every UI Plug-in.
Thanks for quick reply, where exactly should I change? I have taken clone and made changes to this repo: https://github.com/vmware-samples/vcd-ext-samples/tree/plugin-seed-9.1
Now it looks something like this. Just adding a Menu item and have it redirected to another url.
is it i18n.json?
Edit: looks like here is the issue... manifest.json urn is same for both the plugins. @nvladimirovi Thank you, I keep you posted if it's working or not. :)
Hi @nvladimirovi ,
It is still not working mate.
Manifest.json
for current plugin:
{
"urn": "vmware:vcloud:plugin:seed:myresources",
"name": "My Resources Plugin",
"containerVersion": "9.1.0",
"version": "1.1.7",
"scope": ["service-provider", "tenant"],
"permissions": [],
"description": "Developed by Chandu; Plugin that takes customers to Rackpsace Resources VMM Portal.",
"vendor": "VMware",
"license": "Copyright (C) VMware 2017-2018. All rights reserved.",
"link": "http://www.vmware.com/support",
"module": "SubnavPluginModule",
"route": "plugin"
}
and for existing plugin
{
"urn": "vmware:vcloud:plugin:seed",
"name": "Rackspace Solution Guide",
"containerVersion": "9.1.0",
"version": "1.0.1",
"scope": ["service-provider", "tenant"],
"permissions": [],
"description": "Rackspace Document plugin.",
"vendor": "VMware",
"license": "Copyright (C) Rackspace 2021-2022. All rights reserved.",
"link": "http://www.vmware.com/support",
"module": "SubnavPluginModule",
"route": "plugin"
}
Changed urn slightly: vmware:vcloud:plugin:seedmyresources
The localization JSON files are in ./src/public
there prefix all JSON keys with something unique,
also the route of every plugin again has to be unique (in manifest.json
).
@cs-chandu by the way you can check the documentation here for more info and features.
https://github.com/vmware/vcd-ext-sdk -> https://vmware.github.io/vcd-ext-sdk/