super-productivity/src/app/features/right-panel/right-panel-content.component.html

28 lines
1 KiB
HTML

@if (panelContent() === 'ISSUE_PANEL') {
<issue-panel [@slideInFromRight]></issue-panel>
} @else if (panelContent() === 'NOTES') {
<notes [@slideInFromRight]></notes>
} @else if (panelContent() === 'TASK_VIEW_CUSTOMIZER_PANEL') {
<!-- Wrap TVC to stabilize layout during panel width transitions -->
<div
class="panel-wrapper"
[@slideInFromRight]
>
<task-view-customizer-panel></task-view-customizer-panel>
</div>
} @else if (panelContent() === 'PLUGIN') {
@for (key of pluginPanelKeys(); track key) {
<plugin-panel-container [@slideInFromRight]></plugin-panel-container>
}
<!-- Task content comes last so we can avoid an extra effect to unset selected task -->
} @else if (panelContent() === 'SCHEDULE_DAY_PANEL') {
<schedule-day-panel [@slideInFromRight]></schedule-day-panel>
} @else {
@if (selectedTaskWithDelayForNone(); as task) {
<task-detail-panel
[@taskDetailPanelTaskChange]="task.id"
[@.disabled]="isDisableTaskPanelAni()"
[task]="task"
></task-detail-panel>
}
}