forked from unimatrix/web
Apply single-workspace tab cleanup to mailbox and retained adapters
This commit is contained in:
parent
f7c8586594
commit
73efddee09
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ export function mountNativeService(host,id,{fetcher=fetch,singleHeading=false,in
|
|||
const container=el('div',undefined,'cp-v2-native-frame');workspace.append(container,tools);
|
||||
const {root}=createCPV2Page({shellHost:singleHeading?host:null,title:spec.title,description:spec.description,artwork:id==='forum-admin'?'nav-boards-v2.webp':'nav-support-v2.webp',tabs:[{id:'native-workspace',label:spec.label,content:workspace}]});host.replaceChildren(root);
|
||||
// A single embedded workspace needs no repeated tab; navigation belongs to the CP shell.
|
||||
if(id==='clans'){
|
||||
{
|
||||
root.querySelector('.cp-v2-template-tabs')?.remove();
|
||||
const panel=root.querySelector('[data-tab-id="native-workspace"]');
|
||||
panel?.removeAttribute('role');panel?.removeAttribute('aria-labelledby');
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff