mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-29 17:14:37 +03:00
ezqms-1028: fix actions in tree element (#5887)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
a27075b29e
commit
ece5c0ec6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user