diff options
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/videos-selection.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/videos-selection.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-miniature/videos-selection.component.ts b/client/src/app/shared/shared-video-miniature/videos-selection.component.ts index 460a0080e..86fe502e2 100644 --- a/client/src/app/shared/shared-video-miniature/videos-selection.component.ts +++ b/client/src/app/shared/shared-video-miniature/videos-selection.component.ts | |||
@@ -2,6 +2,7 @@ import { Observable, Subject } from 'rxjs' | |||
2 | import { AfterContentInit, Component, ContentChildren, EventEmitter, Input, Output, QueryList, TemplateRef } from '@angular/core' | 2 | import { AfterContentInit, Component, ContentChildren, EventEmitter, Input, Output, QueryList, TemplateRef } from '@angular/core' |
3 | import { ComponentPagination, Notifier, User } from '@app/core' | 3 | import { ComponentPagination, Notifier, User } from '@app/core' |
4 | import { logger } from '@root-helpers/logger' | 4 | import { logger } from '@root-helpers/logger' |
5 | import { objectKeysTyped } from '@shared/core-utils' | ||
5 | import { ResultList, VideosExistInPlaylists, VideoSortField } from '@shared/models' | 6 | import { ResultList, VideosExistInPlaylists, VideoSortField } from '@shared/models' |
6 | import { PeerTubeTemplateDirective, Video } from '../shared-main' | 7 | import { PeerTubeTemplateDirective, Video } from '../shared-main' |
7 | import { MiniatureDisplayOptions } from './video-miniature.component' | 8 | import { MiniatureDisplayOptions } from './video-miniature.component' |
@@ -93,7 +94,7 @@ export class VideosSelectionComponent implements AfterContentInit { | |||
93 | } | 94 | } |
94 | 95 | ||
95 | isInSelectionMode () { | 96 | isInSelectionMode () { |
96 | return Object.keys(this._selection).some(k => this._selection[k] === true) | 97 | return objectKeysTyped(this._selection).some(k => this._selection[k] === true) |
97 | } | 98 | } |
98 | 99 | ||
99 | videoById (index: number, video: Video) { | 100 | videoById (index: number, video: Video) { |