add entry media upload menu
This commit is contained in:
1 parent
4c318fb569
commit
c46309e458
14 files changed
+616
-2
No files matched your search
@@ -20,6 +20,7 @@ import { LibraryService } from '../../../core/services/library.service';
|
||||
import { ToastrService } from 'ngx-toastr';
|
||||
import { EntrySeen } from '../../../shared/models/entrySeen.model';
|
||||
import { EpisodeSeenModalComponent } from '../../../shared/components/modals/episode-seen-modal/episode-seen-modal.component';
|
||||
import { MediaModalComponent } from '../media-modal/media-modal.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-entry-page',
|
||||
@@ -205,7 +206,7 @@ export class EntryPageComponent implements OnInit {
|
||||
// ? from the watchlist, so now we need to refrech libraryService in order to
|
||||
// ? update the watchlist page
|
||||
if (this.entry.watchlist) {
|
||||
this.libraryService.refrechEntries().subscribe();
|
||||
this.libraryService.refreshEntries().subscribe();
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -608,6 +609,26 @@ export class EntryPageComponent implements OnInit {
|
||||
window.open(poster, '_blank');
|
||||
}
|
||||
|
||||
mediaModal() {
|
||||
const dialogRef = this.dialog.open(MediaModalComponent, {
|
||||
width: '800px',
|
||||
height: '600px',
|
||||
minHeight: '50%',
|
||||
panelClass: 'media-dialog-container',
|
||||
data: {
|
||||
entry: this.entry,
|
||||
},
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((result) => {
|
||||
if (result) {
|
||||
// TODO show notification
|
||||
} else {
|
||||
// console.log('Seen dialog was cancelled');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// * getters
|
||||
get status() {
|
||||
return this.entry.status;
|
||||
|
||||
Reference in new issue
Block a user