MatMenu backdrop 옵션 수정.

This commit is contained in:
leejinho 2020-01-10 13:12:55 +09:00
parent ccd5c7ec61
commit 856def09c4
6 changed files with 7 additions and 38 deletions

View File

@ -119,11 +119,7 @@
#chatContextMenuTrigger="matMenuTrigger" #chatContextMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="chatContextMenu" [matMenuTriggerFor]="chatContextMenu"
></div> ></div>
<mat-menu <mat-menu #chatContextMenu="matMenu">
#chatContextMenu="matMenu"
[hasBackdrop]="false"
(ucapClickOutside)="chatContextMenuTrigger.closeMenu()"
>
<ng-template matMenuContent let-roomInfo="roomInfo"> <ng-template matMenuContent let-roomInfo="roomInfo">
<button mat-menu-item (click)="onClickContextMenu('SELECT_ROOM', roomInfo)"> <button mat-menu-item (click)="onClickContextMenu('SELECT_ROOM', roomInfo)">
{{ 'chat.openRoom' | translate }} {{ 'chat.openRoom' | translate }}

View File

@ -7,7 +7,6 @@
#groupMenuTrigger="matMenuTrigger" #groupMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="groupMenu" [matMenuTriggerFor]="groupMenu"
aria-label="group menu" aria-label="group menu"
(ucapClickOutside)="groupMenuTrigger.closeMenu()"
> >
<mat-icon>more_vert</mat-icon> <mat-icon>more_vert</mat-icon>
</button> </button>
@ -71,12 +70,7 @@
</ucap-profile-user-list-item> </ucap-profile-user-list-item>
</div> </div>
<mat-menu <mat-menu #groupMenu="matMenu" xPosition="after" yPosition="below">
#groupMenu="matMenu"
xPosition="after"
yPosition="below"
[hasBackdrop]="false"
>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_NEW')"> <button mat-menu-item (click)="onClickGroupMenu('GROUP_NEW')">
<!--<mat-icon>group_add</mat-icon>--> <!--<mat-icon>group_add</mat-icon>-->
<svg <svg
@ -148,11 +142,7 @@
#profileContextMenuTrigger="matMenuTrigger" #profileContextMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="profileContextMenu" [matMenuTriggerFor]="profileContextMenu"
></div> ></div>
<mat-menu <mat-menu #profileContextMenu="matMenu">
#profileContextMenu="matMenu"
[hasBackdrop]="false"
(ucapClickOutside)="profileContextMenuTrigger.closeMenu()"
>
<ng-template <ng-template
matMenuContent matMenuContent
let-userInfo="userInfo" let-userInfo="userInfo"
@ -242,11 +232,7 @@
#groupContextMenuTrigger="matMenuTrigger" #groupContextMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="groupContextMenu" [matMenuTriggerFor]="groupContextMenu"
></div> ></div>
<mat-menu <mat-menu #groupContextMenu="matMenu">
#groupContextMenu="matMenu"
[hasBackdrop]="false"
(ucapClickOutside)="groupContextMenuTrigger.closeMenu()"
>
<ng-template matMenuContent let-group="group"> <ng-template matMenuContent let-group="group">
<button <button
mat-menu-item mat-menu-item

View File

@ -177,11 +177,7 @@
#orgUserContextMenuTrigger="matMenuTrigger" #orgUserContextMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="orgUserContextMenu" [matMenuTriggerFor]="orgUserContextMenu"
></div> ></div>
<mat-menu <mat-menu #orgUserContextMenu="matMenu">
#orgUserContextMenu="matMenu"
[hasBackdrop]="false"
(ucapClickOutside)="orgUserContextMenuTrigger.closeMenu()"
>
<ng-template matMenuContent let-userInfo="userInfo"> <ng-template matMenuContent let-userInfo="userInfo">
<button <button
mat-menu-item mat-menu-item

View File

@ -120,12 +120,11 @@
#chatMenuTrigger="matMenuTrigger" #chatMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="contactMenu" [matMenuTriggerFor]="contactMenu"
aria-label="more" aria-label="more"
(ucapClickOutside)="chatMenuTrigger.closeMenu()"
> >
<mat-icon>more_vert</mat-icon> <mat-icon>more_vert</mat-icon>
</button> </button>
<mat-menu #contactMenu="matMenu" [hasBackdrop]="false"> <mat-menu #contactMenu="matMenu">
<button <button
mat-menu-item mat-menu-item
*ngIf="getShowContextMenu('OPEN_ALBUM_LIST')" *ngIf="getShowContextMenu('OPEN_ALBUM_LIST')"
@ -322,8 +321,6 @@
></div> ></div>
<mat-menu <mat-menu
#messageContextMenu="matMenu" #messageContextMenu="matMenu"
[hasBackdrop]="false"
(ucapClickOutside)="messageContextMenuTrigger.closeMenu()"
> >
<ng-template matMenuContent let-message="message" let-clicktype="clicktype"> <ng-template matMenuContent let-message="message" let-clicktype="clicktype">
<ng-container *ngIf="!isRecalledMessage(message.type)"> <ng-container *ngIf="!isRecalledMessage(message.type)">

View File

@ -32,11 +32,7 @@
#roomUserContextMenuTrigger="matMenuTrigger" #roomUserContextMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="roomUserContextMenu" [matMenuTriggerFor]="roomUserContextMenu"
></div> ></div>
<mat-menu <mat-menu #roomUserContextMenu="matMenu">
#roomUserContextMenu="matMenu"
[hasBackdrop]="false"
(ucapClickOutside)="roomUserContextMenuTrigger.closeMenu()"
>
<ng-template matMenuContent let-buddy="buddy"> <ng-template matMenuContent let-buddy="buddy">
<button mat-menu-item (click)="onClickContextMenu('FORCING_EXIT', buddy)"> <button mat-menu-item (click)="onClickContextMenu('FORCING_EXIT', buddy)">
{{ 'chat.ejectFromRoom' | translate }} {{ 'chat.ejectFromRoom' | translate }}

View File

@ -79,7 +79,6 @@
class="message-menu" class="message-menu"
#messageMenuTrigger="matMenuTrigger" #messageMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="messageMenu" [matMenuTriggerFor]="messageMenu"
(ucapClickOutside)="messageMenuTrigger.closeMenu()"
> >
<mat-icon>more_vert</mat-icon> <mat-icon>more_vert</mat-icon>
</button> </button>
@ -242,7 +241,6 @@
#messageMenu="matMenu" #messageMenu="matMenu"
xPosition="after" xPosition="after"
yPosition="below" yPosition="below"
[hasBackdrop]="false"
> >
<button <button
mat-menu-item mat-menu-item