Skip to content

Commit 0032557

Browse files
committed
[app] Fix announcement being truncated
1 parent 7e88a90 commit 0032557

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/app/dashboard/dashboard.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ export class DashboardComponent implements OnInit {
164164
this.messageService.notice(error);
165165
this.loadingAnnouncement = false;
166166
});
167-
param = param.set('lang', this.language.getCurrentLang()).set('type', 'UPDATE').set('size', '1');
168-
this.api.get('api/user/announcement/', param).subscribe(
167+
param = param.set('lang', this.language.getCurrentLang()).set('type', 'UPDATE');
168+
this.api.get('api/user/announcement/recent', param).subscribe(
169169
resp => {
170170
if (resp?.status) {
171171
const statusCode: StatusCode = resp.status.code;
172172
if (statusCode === StatusCode.OK && resp.data) {
173-
this.recentUpdate = Announcement.fromJSON(resp.data.content[0]);
173+
this.recentUpdate = Announcement.fromJSON(resp.data);
174174
}
175175
else{
176176
this.messageService.notice(resp.status.message);

src/app/sega/chunithm/v2/v2-rating/v2-rating.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export class V2RatingComponent implements OnInit {
5353
}
5454
this.topRating.forEach(item => this.topTotal += item.rating);
5555
this.newRating.forEach(item => this.newTotal += item.rating);
56-
this.newRating.forEach(item => console.log(item.rating.toString()));
5756
},
5857
error => this.messageService.notice(error)
5958
);

src/app/sega/maimai2/maimai2-rating/maimai2-rating.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2 class="mb-0">{{ 'Maimai2.RatingPage.B15'|translate }}</h2>
8383

8484
<ng-template #record let-index="index" let-item="item">
8585
<div class="col-12 col-md-6 col-xxl-4">
86-
<div class="card rating-card" (click)="showDetail(item.music)">
86+
<div class="card card-btn rating-card" (click)="showDetail(item.music)">
8787
<div class="hstack">
8888
<img
8989
class="jacket rounded-start"

0 commit comments

Comments
 (0)