minor style/functions renaming changes

This commit is contained in:
X4Lo committed 2024-04-16 19:13:56 +01:00
1 parent 3374aa9944
commit 8b4c0792c0
13 files changed
+95 -50

No files matched your search

@@ -2,18 +2,19 @@
padding-top: 1px;
}
.list-title{
.list-title {
font-size: 20px;
}
.list-title:hover {
color: var(--aruze-blue)
}
.list-line{
.list-line {
border-radius: 1px;
padding: 2px;
}
.list-line:hover {
background-color: aliceblue;
background-color: var(--shz-light-bgh);
}
:host-context([data-bs-theme="dark"]) .list-line:hover {
background-color: var(--shz-dark-bgh);
}
@@ -1,4 +1,4 @@
import { Component, Input} from '@angular/core';
import { Component, Input } from '@angular/core';
import { UserCollection } from '../../../../shared/models/userCollection.model';
import { UserCollectionService } from '../../../../core/services/userCollection.service';
import { Router } from '@angular/router';
@@ -25,7 +25,10 @@ import { trigger, transition, style, animate } from '@angular/animations';
export class UserCollectionsListItemComponent {
@Input() list!: UserCollection;
constructor(private listService: UserCollectionService, private router: Router) {}
constructor(
private listService: UserCollectionService,
private router: Router
) {}
getPostPath() {
if (this.list.poster_path == null) return 'https://pic.pnnet.dev/256x256';
@@ -44,6 +47,6 @@ export class UserCollectionsListItemComponent {
}
deleteList() {
this.listService.deleteList(this.list.id);
this.listService.deleteCollection(this.list.id);
}
}
@@ -8,7 +8,7 @@
<a href="javascript:;">
</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Lists</li>
<li class="breadcrumb-item active" aria-current="page">Collections</li>
</ol>
</nav>
</div>
@@ -30,7 +30,8 @@
<div class="p-3 ps ps--active-y">
<div class="d-flex flex-column gap-3">
<!-- item start -->
<app-userCollections-list-item *ngFor="let list of listsToShow" [list]="list"></app-userCollections-list-item>
<app-userCollections-list-item *ngFor="let list of listsToShow"
[list]="list"></app-userCollections-list-item>
<!-- item end -->
</div>
</div>
@@ -26,7 +26,7 @@ export class UserCollectionsPageComponent implements OnInit {
}
getLists() {
this.listService.getLists().subscribe({
this.listService.getCollections().subscribe({
next: (l) => {
console.log(`Loaded ${l.length} lists.`);
this.lists = l;