From b9177868b3dc2badd27e0d1b6dfeb2930e878e20 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 3 Apr 2020 16:56:19 +0200 Subject: Fix lint relative to DragDropDirective --- .../+video-edit/video-add-components/drag-drop.directive.ts | 12 ++++++------ .../video-add-components/video-import-torrent.component.html | 2 +- .../video-add-components/video-upload.component.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/videos/+video-edit/video-add-components/drag-drop.directive.ts b/client/src/app/videos/+video-edit/video-add-components/drag-drop.directive.ts index 07c7d34ac..7b1a38c62 100644 --- a/client/src/app/videos/+video-edit/video-add-components/drag-drop.directive.ts +++ b/client/src/app/videos/+video-edit/video-add-components/drag-drop.directive.ts @@ -4,27 +4,27 @@ import { Directive, Output, EventEmitter, HostBinding, HostListener } from '@ang selector: '[dragDrop]' }) export class DragDropDirective { - @Output() onFileDropped = new EventEmitter() + @Output() fileDropped = new EventEmitter() @HostBinding('class.dragover') dragover = false - @HostListener('dragover', ['$event']) onDragOver(e: Event) { + @HostListener('dragover', ['$event']) onDragOver (e: Event) { e.preventDefault() e.stopPropagation() this.dragover = true } - @HostListener('dragleave', ['$event']) public onDragLeave(e: Event) { + @HostListener('dragleave', ['$event']) public onDragLeave (e: Event) { e.preventDefault() e.stopPropagation() this.dragover = false } - @HostListener('drop', ['$event']) public ondrop(e: DragEvent) { + @HostListener('drop', ['$event']) public ondrop (e: DragEvent) { e.preventDefault() e.stopPropagation() this.dragover = false - let files = e.dataTransfer.files - if (files.length > 0) this.onFileDropped.emit(files) + const files = e.dataTransfer.files + if (files.length > 0) this.fileDropped.emit(files) } } diff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html b/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html index 1d9384161..c2ee3ad57 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html +++ b/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html index 8db441a8c..950e55a52 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html @@ -1,4 +1,4 @@ -
+
-- cgit v1.2.3