mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
Initial meeting minutes (#7111)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -91,11 +91,11 @@
|
||||
void closeTab(tab)
|
||||
}
|
||||
|
||||
function handleMenu (event: MouseEvent): void {
|
||||
function handleMenu (event: CustomEvent<MouseEvent>): void {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
|
||||
showMenu(event, { object: tab, baseMenuClass: workbench.class.WorkbenchTab })
|
||||
showMenu(event.detail, { object: tab, baseMenuClass: workbench.class.WorkbenchTab })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -30,14 +30,14 @@
|
||||
})
|
||||
}
|
||||
|
||||
function handleMenu (event: MouseEvent): void {
|
||||
function handleMenu (event: CustomEvent<MouseEvent>): void {
|
||||
if (actions.length === 0) {
|
||||
return
|
||||
}
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
|
||||
showPopup(Menu, { actions }, event.target as HTMLElement)
|
||||
showPopup(Menu, { actions }, event.detail.target as HTMLElement)
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
highlighted={selected}
|
||||
orientation="vertical"
|
||||
kind={tab.isPinned ? 'secondary' : 'primary'}
|
||||
readonly={tab.readonly}
|
||||
{icon}
|
||||
iconProps={tab.iconProps}
|
||||
canClose={!tab.isPinned}
|
||||
|
||||
Reference in New Issue
Block a user