From deb928da12d81de7427b425a1530932f4e7a977a Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Mon, 24 Feb 2020 04:11:22 -0500 Subject: [PATCH] sorting and updating now only possible on favorited (saved) playlists fixed compilation bug in app.module --- src/app/app.module.ts | 5 +---- src/app/player/player.component.html | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b3338e9..68ae9af 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -3,7 +3,6 @@ import { NgModule } from '@angular/core'; import {MatNativeDateModule, MatRadioModule, MatInputModule, MatButtonModule, MatSidenavModule, MatIconModule, MatListModule, MatSnackBarModule, MatCardModule, MatSelectModule, MatToolbarModule, MatCheckboxModule, MatGridListModule, MatProgressBarModule, MatExpansionModule, - MatGridList, MatProgressSpinnerModule, MatButtonToggleModule, MatDialogModule} from '@angular/material'; @@ -14,7 +13,6 @@ import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import { HttpModule } from '@angular/http'; import { HttpClientModule, HttpClient } from '@angular/common/http'; import { PostsService } from 'app/posts.services'; -import {APP_BASE_HREF} from '@angular/common'; import { FileCardComponent } from './file-card/file-card.component'; import {RouterModule} from '@angular/router'; import { AppRoutingModule } from './app-routing.module'; @@ -28,10 +26,9 @@ import { InputDialogComponent } from './input-dialog/input-dialog.component'; import { LazyLoadImageModule, IsVisibleProps } from 'ng-lazyload-image'; import { NgxContentLoadingModule } from 'ngx-content-loading'; import { audioFilesMouseHovering, videoFilesMouseHovering } from './main/main.component'; -import { Observable } from 'rxjs'; import { CreatePlaylistComponent } from './create-playlist/create-playlist.component'; -function isVisible({ event, element, scrollContainer, offset }: IsVisibleProps) { +export function isVisible({ event, element, scrollContainer, offset }: IsVisibleProps) { return (element.id === 'video' ? videoFilesMouseHovering : audioFilesMouseHovering); } diff --git a/src/app/player/player.component.html b/src/app/player/player.component.html index 8290849..4c5d88f 100644 --- a/src/app/player/player.component.html +++ b/src/app/player/player.component.html @@ -8,14 +8,14 @@
- + {{decodeURI(playlist_item.title)}}
-
+