+ this.videoPlaylistService.removeVideoPlaylist(videoPlaylist)
+ .subscribe(
+ () => {
+ this.router.navigate([ '/my-account', 'video-playlists' ])
+ this.notifier.success($localize`Playlist ${videoPlaylist.displayName} deleted.`)
+ },
+
+ error => this.notifier.error(error.message)
+ )
+ }
+
+ /**
+ * Returns null to not have drag and drop delay.
+ * In small views, where elements are about 100% wide,
+ * we add a delay to prevent unwanted drag&drop.
+ *
+ * @see {@link https://github.com/Chocobozzz/PeerTube/issues/2078}
+ *
+ * @returns {null|number} Null for no delay, or a number in milliseconds.
+ */
+ getDragStartDelay (): null | number {
+ if (this.screenService.isInTouchScreen()) {
+ return 500
+ }
+
+ return null