minor changes + changed some routes
This commit is contained in:
1 parent
cea1b207a3
commit
537763ff7d
7 files changed
+15
-14
No files matched your search
@@ -20,12 +20,12 @@ const routes: Routes = [
|
||||
{ path: 'watchlist', component: WatchlistComponent },
|
||||
// { path: 'entry', component: LibraryComponent },
|
||||
{
|
||||
path: 'entry',
|
||||
path: 'entries',
|
||||
loadChildren: () =>
|
||||
import('./features/entry/entries.module').then((m) => m.EntriesModule),
|
||||
},
|
||||
{
|
||||
path: 'user-collections',
|
||||
path: 'collections',
|
||||
loadChildren: () =>
|
||||
import('./features/collections/user-collections.module').then(
|
||||
(m) => m.UserCollectionsModule
|
||||
|
||||
@@ -8,7 +8,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { DragDropModule } from '@angular/cdk/drag-drop';
|
||||
|
||||
|
||||
import { CoreModule } from './core/core.module';
|
||||
import { CommonModule, DatePipe } from '@angular/common';
|
||||
|
||||
@@ -56,7 +55,6 @@ import { WatchlistComponent } from './features/watchlist/watchlist.component';
|
||||
ReactiveFormsModule,
|
||||
FormsModule,
|
||||
|
||||
|
||||
DragDropModule,
|
||||
],
|
||||
providers: [DatePipe],
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<div class="menu-title">Watchlist</div>
|
||||
</a>
|
||||
</li>
|
||||
<li routerLink="/user-collections" routerLinkActive="mm-active">
|
||||
<li routerLink="/collections" routerLinkActive="mm-active">
|
||||
<a>
|
||||
<div class="parent-icon"><span class="material-symbols-outlined">
|
||||
format_list_bulleted
|
||||
|
||||
@@ -112,6 +112,10 @@
|
||||
color: black;
|
||||
}
|
||||
|
||||
[data-bs-theme=dark] .right-col .entry-actions span {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.right-col .entry-actions span:hover {
|
||||
color: var(--shz-blue-default);
|
||||
}
|
||||
|
||||
@@ -24,13 +24,12 @@ export class LibraryComponent {
|
||||
ngOnInit() {
|
||||
this.pageSize = this.getDefaultPageSize();
|
||||
this.getEntries(true);
|
||||
|
||||
this.router.events.subscribe((event) => {
|
||||
if (event instanceof NavigationEnd && event.url === '/library') {
|
||||
this.pageSize = this.getDefaultPageSize();
|
||||
this.getEntries(true);
|
||||
}
|
||||
});
|
||||
// this.router.events.subscribe((event) => {
|
||||
// if (event instanceof NavigationEnd && event.url === '/library') {
|
||||
// this.pageSize = this.getDefaultPageSize();
|
||||
// this.getEntries(true);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
// ? uses libraryService to get library all entries
|
||||
|
||||
@@ -116,7 +116,7 @@ export class MainCardComponent implements OnInit {
|
||||
|
||||
cardClick() {
|
||||
if (this.entry.isInLibrary)
|
||||
this.router.navigate([`/entry/${this.entry.id}`]);
|
||||
this.router.navigate([`/entries/${this.entry.id}`]);
|
||||
}
|
||||
|
||||
getTmdbLink() {
|
||||
|
||||
Reference in new issue
Block a user