Fix private calls
This commit is contained in:
@@ -29,9 +29,11 @@
|
||||
[class.dm-rail-slide-out]="item.isExiting"
|
||||
[class.pointer-events-none]="item.isExiting"
|
||||
[ngClass]="isSelectedItem(item) ? 'rounded-lg ring-2 ring-primary/40 bg-primary/10' : 'rounded-xl bg-card'"
|
||||
[attr.data-testid]="'dm-rail-item-' + item.id"
|
||||
[title]="item.label"
|
||||
[attr.aria-current]="isSelectedItem(item) ? 'page' : null"
|
||||
(click)="openItem(item)"
|
||||
(contextmenu)="openContextMenu($event, item)"
|
||||
>
|
||||
<div class="h-full w-full overflow-hidden rounded-[inherit]">
|
||||
@if (item.avatarUrl) {
|
||||
@@ -58,7 +60,7 @@
|
||||
class="absolute -bottom-1 -right-1 grid h-4 w-4 place-items-center rounded-full bg-secondary text-muted-foreground shadow-sm ring-2 ring-card"
|
||||
>
|
||||
<ng-icon
|
||||
name="lucideUser"
|
||||
[name]="iconFor(item)"
|
||||
class="h-2.5 w-2.5"
|
||||
/>
|
||||
</span>
|
||||
@@ -72,3 +74,24 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (contextMenu(); as menu) {
|
||||
<app-context-menu
|
||||
[x]="menu.x"
|
||||
[y]="menu.y"
|
||||
width="w-44"
|
||||
(closed)="closeContextMenu()"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
class="context-menu-item-icon-danger"
|
||||
(click)="forgetContextItem()"
|
||||
>
|
||||
<ng-icon
|
||||
[name]="forgetContextIcon(menu.item)"
|
||||
class="h-4 w-4"
|
||||
/>
|
||||
{{ forgetContextLabel(menu.item) }}
|
||||
</button>
|
||||
</app-context-menu>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user