mirror of
https://github.com/zadam/trilium.git
synced 2025-12-15 20:59:54 +01:00
chore(ribbon): hide inherited & owned attributes on new layout
This commit is contained in:
@@ -97,15 +97,15 @@ export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [
|
|||||||
title: t("owned_attribute_list.owned_attributes"),
|
title: t("owned_attribute_list.owned_attributes"),
|
||||||
icon: "bx bx-list-check",
|
icon: "bx bx-list-check",
|
||||||
content: OwnedAttributesTab,
|
content: OwnedAttributesTab,
|
||||||
show: ({note}) => !note?.isLaunchBarConfig(),
|
show: ({note}) => !isNewLayout && !note?.isLaunchBarConfig(),
|
||||||
toggleCommand: "toggleRibbonTabOwnedAttributes",
|
toggleCommand: "toggleRibbonTabOwnedAttributes",
|
||||||
stayInDom: true
|
stayInDom: !isNewLayout
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t("inherited_attribute_list.title"),
|
title: t("inherited_attribute_list.title"),
|
||||||
icon: "bx bx-list-plus",
|
icon: "bx bx-list-plus",
|
||||||
content: InheritedAttributesTab,
|
content: InheritedAttributesTab,
|
||||||
show: ({note}) => !note?.isLaunchBarConfig(),
|
show: ({note}) => !isNewLayout && !note?.isLaunchBarConfig(),
|
||||||
toggleCommand: "toggleRibbonTabInheritedAttributes"
|
toggleCommand: "toggleRibbonTabInheritedAttributes"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user