mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-18 09:24:19 +02:00
add double click play to album detail
- add mediaPlayByIndex - add index property to item list controls args - add overrides to item list controls
This commit is contained in:
@@ -12,10 +12,14 @@ export const ActionsColumn = (props: ItemTableListInnerColumn) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
if (row !== undefined) {
|
||||
const item = row as ItemListItem;
|
||||
const rowId = props.internalState.extractRowId(item);
|
||||
const index = rowId ? props.internalState.findItemIndex(rowId) : -1;
|
||||
props.controls.onMore?.({
|
||||
event,
|
||||
index,
|
||||
internalState: props.internalState,
|
||||
item: row as ItemListItem,
|
||||
item,
|
||||
itemType: props.itemType,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user