Back to Kavita

Card Actionables.Component

UI/Web/src/app/_single-module/card-actionables/card-actionables.component.html

0.9.0694 B
Original Source

@let labelId = 'actions-' + labelBy(); @if (filteredActions().length > 0) { @if (breakpointService.isTabletOrBelow()) { {{label()}} } @else { {{label()}}

@for(action of list; track action.title) { @if (action.children === undefined || action?.children?.length === 0 || action.dynamicList !== undefined) { @if (action.dynamicList !== undefined && (action.dynamicList | async | dynamicList); as dList) { @for(dynamicItem of dList; track dynamicItem.title) { {{dynamicItem.title}} } } @else { {{t(action.title)}} } } @else { @if (shouldRenderSubMenu(action, action.children?.[0].dynamicList | async)) { @if (willRenderAction(action, this.currentUser()!)) { {{t(action.title)}} }

} } } } }