Skip to content

Commit 5eab36b

Browse files
committed
[DSC-1864] Fix lint warnings
1 parent 7323f58 commit 5eab36b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/app/shared/context-menu/context-menu.component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChangeDetectorRef, Component, Inject, Injector, Input, OnInit } from '@angular/core';
1+
import { AfterViewChecked, ChangeDetectorRef, Component, Inject, Injector, Input, OnInit } from '@angular/core';
22
import { DOCUMENT } from '@angular/common';
33

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

2929
/**
3030
* The related item
@@ -124,10 +124,6 @@ export class ContextMenuComponent implements OnInit {
124124
);
125125
}
126126

127-
isItem(): boolean {
128-
return this.contextMenuObjectType === DSpaceObjectType.ITEM;
129-
}
130-
131127
ngAfterViewChecked() {
132128
// To check that Context-menu contains options or not
133129
if (this._document.getElementById('itemOptionsDropdownMenu')) {

0 commit comments

Comments
 (0)