Skip to content

Commit

Permalink
ramona changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayvirS committed Dec 10, 2024
1 parent 442d81f commit 1d6b25c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
}
}

.split-pane-header-file.hover {
background-color: lightskyblue;
.dropdown-item.hover {
background-color: var(--data-table-dropdown-item-selected-background-color);
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export class SplitPaneHeaderComponent implements OnChanges, OnInit, OnDestroy {
public showFiles = false;
public activeFileIndex = 0;

private fileSelectSubscription: Subscription;
private showFilesSubscription: Subscription;
private dropdownHoverSubscription: Subscription;
private fileSelectSubscription: Subscription | undefined;
private showFilesSubscription: Subscription | undefined;
private dropdownHoverSubscription: Subscription | undefined;

// Icons
faChevronDown = faChevronDown;
Expand Down Expand Up @@ -70,7 +70,7 @@ export class SplitPaneHeaderComponent implements OnChanges, OnInit, OnDestroy {
* @private helper method
*/
private subscribeToShowFiles(): void {
this.showFilesSubscription = this.showFilesSubject()!.subscribe((showFiles) => {
this.showFilesSubscription = this.showFilesSubject()?.subscribe((showFiles) => {
if (this.isLockFilesEnabled()! || (!this.isLockFilesEnabled()! && !showFiles)) {
this.toggleShowFiles(false, showFiles);
}
Expand All @@ -82,7 +82,7 @@ export class SplitPaneHeaderComponent implements OnChanges, OnInit, OnDestroy {
* @private helper method
*/
private subscribeToDropdownHover(): void {
this.dropdownHoverSubscription = this.dropdownHoverSubject()!.subscribe((textPlagiarismElement) => {
this.dropdownHoverSubscription = this.dropdownHoverSubject()?.subscribe((textPlagiarismElement) => {
if (this.isLockFilesEnabled()) {
this.handleDropdownHover(textPlagiarismElement.file, textPlagiarismElement.idx);
}
Expand Down

0 comments on commit 1d6b25c

Please sign in to comment.