mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 19:57:43 +02:00
ezqms-1028: fix actions in tree element (#5887)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
@@ -58,10 +58,12 @@
|
||||
let inlineActions: Action[] = []
|
||||
let popupMenuActions: Action[] = []
|
||||
|
||||
$: actions().then((result) => {
|
||||
inlineActions = result.filter((action) => action.inline === true)
|
||||
popupMenuActions = result.filter((action) => action.inline !== true)
|
||||
})
|
||||
$: if (actions !== undefined) {
|
||||
actions().then((result) => {
|
||||
inlineActions = result.filter((action) => action.inline === true)
|
||||
popupMenuActions = result.filter((action) => action.inline !== true)
|
||||
})
|
||||
}
|
||||
|
||||
async function onMenuClick (ev: MouseEvent): Promise<void> {
|
||||
// Read actual popup actions on open as visibility might have been changed
|
||||
|
||||
Reference in New Issue
Block a user