Skip to content

Commit

Permalink
[DSC-1864] Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Oct 25, 2024
1 parent 7323f58 commit 5eab36b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/shared/context-menu/context-menu.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChangeDetectorRef, Component, Inject, Injector, Input, OnInit } from '@angular/core';
import { AfterViewChecked, ChangeDetectorRef, Component, Inject, Injector, Input, OnInit } from '@angular/core';
import { DOCUMENT } from '@angular/common';

import { from, Observable } from 'rxjs';
Expand All @@ -24,7 +24,7 @@ import { GenericConstructor } from '../../core/shared/generic-constructor';
styleUrls: ['./context-menu.component.scss'],
templateUrl: './context-menu.component.html'
})
export class ContextMenuComponent implements OnInit {
export class ContextMenuComponent implements OnInit, AfterViewChecked {

/**
* The related item
Expand Down Expand Up @@ -124,10 +124,6 @@ export class ContextMenuComponent implements OnInit {
);
}

isItem(): boolean {
return this.contextMenuObjectType === DSpaceObjectType.ITEM;
}

ngAfterViewChecked() {
// To check that Context-menu contains options or not
if (this._document.getElementById('itemOptionsDropdownMenu')) {
Expand Down

0 comments on commit 5eab36b

Please sign in to comment.