This message was deleted.
# extensions
a
This message was deleted.
1
s
Unfortunately it doesn't look like we offer the option to only show tabs in detail or edit view, it will appear in both. Would you be able to open an issue over at https://github.com/rancher/dashboard/issues with the request?
until then though, you can tell which mode you're in within the component via something like
Copy code
import { _VIEW } from '@shell/config/query-params';

const view = this.$route.params?.id ? route.query.mode || _VIEW : false
const isView = view === _VIEW;
Using that, as a temporary step, you could display something different when not in a detail page
l
In current UI, during PVC create or edit it shows 3 tabs where as during view, it shows 7.
is this functionality not exposed for extensions?
s
correct
i think it should be though
l
sure @stocky-account-63046 , I'll file an enhancement ticket.
Here is the ticket for the same: https://github.com/rancher/dashboard/issues/12069
s
Thanks. We're concentrating on the migration to vue3 for the next release, but i've added to the one after
👍 1
b
Hi @loud-cricket-41513, can you try with
mode
detail
and check if it works? https://extensions.rancher.io/extensions/api/common#locationconfig
s
ahh, i didn't drop down into
checkExtensionRouteBinding
? @busy-ability-54059
l
It worked @busy-ability-54059. Thanks!
🫡 1
just a small suggestion. it will be nice, if we have these values as enums. as they are fixed values.
b
import { _DETAIL } from '@shell/config/query-params'
you can then use
_DETAIL
👍 1