Collection Redesign (#500)

* Setup UI for the collection redesign.

* Implemented collection details page
This commit is contained in:
Joseph Milazzo 2021-08-16 16:08:56 -07:00 committed by GitHub
parent 226d7408bf
commit 51ea41fc35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 289 additions and 42 deletions

View file

@ -120,11 +120,10 @@ export class LibraryComponent implements OnInit, OnDestroy {
case(Action.Edit):
const modalRef = this.modalService.open(EditCollectionTagsComponent, { size: 'lg', scrollable: true });
modalRef.componentInstance.tag = collectionTag;
modalRef.closed.subscribe((reloadNeeded: boolean) => {
if (reloadNeeded) {
// Reload tags
this.reloadTags();
collectionTag.coverImage = this.imageService.randomize(this.imageService.getCollectionCoverImage(collectionTag.id));
modalRef.closed.subscribe((results: {success: boolean, coverImageUpdated: boolean}) => {
this.reloadTags();
if (results.coverImageUpdated) {
collectionTag.coverImage = this.imageService.randomize(collectionTag.coverImage);
}
});
break;