diff --git a/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.html b/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.html index edcff43b6..291c375e2 100644 --- a/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.html +++ b/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.html @@ -1,7 +1,7 @@ +
diff --git a/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.scss b/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.scss index e69de29bb..e203f5340 100644 --- a/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.scss +++ b/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.scss @@ -0,0 +1,3 @@ +redaction-circle-button.disabled { + pointer-events: none; +} diff --git a/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.ts b/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.ts index bdd5107ea..e8c3f18a8 100644 --- a/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.ts +++ b/apps/red-ui/src/app/components/buttons/report-download-btn/report-download-btn.component.ts @@ -1,8 +1,9 @@ -import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; +import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; import { PermissionsService } from '../../../common/service/permissions.service'; import { AppStateService } from '../../../state/app-state.service'; import { ProjectWrapper } from '../../../state/model/project.wrapper'; import { FileStatusWrapper } from '../../../screens/file/model/file-status.wrapper'; +import { MatMenuTrigger } from '@angular/material/menu'; export type MenuState = 'OPEN' | 'CLOSED'; @@ -19,6 +20,7 @@ export class ReportDownloadBtnComponent implements OnInit { @Input() tooltipClass: string; @Output() menuStateChanged = new EventEmitter(); + @ViewChild('menuTrigger') menuTrigger: MatMenuTrigger; constructor(public readonly permissionsService: PermissionsService, private readonly _appStateService: AppStateService) {} @@ -26,6 +28,7 @@ export class ReportDownloadBtnComponent implements OnInit { openMenu($event: MouseEvent) { $event.stopPropagation(); + this.menuTrigger.openMenu(); this.menuStateChanged.emit('OPEN'); }