Fixes bug on loadMore and fixes spelling on recent activities

This commit is contained in:
apapachristou 2020-07-03 14:00:23 +03:00
parent 2cb6583bf4
commit 16af9e8f3e
10 changed files with 27 additions and 12 deletions

View File

@ -28,7 +28,7 @@ export class DashboardService {
return this.http.get<DashboardStatisticsModel>(this.actionUrl + 'me/getStatistics', { headers: this.headers });
}
getRecentAcitvity(request: DataTableRequest<RecentActivityCriteria>): Observable<RecentActivityModel[]> {
getRecentActivity(request: DataTableRequest<RecentActivityCriteria>): Observable<RecentActivityModel[]> {
return this.http.post<RecentActivityModel[]>(this.actionUrl + 'recentActivity', request, {headers: this.headers});
}
}

View File

@ -59,7 +59,7 @@
</mat-menu>
</div>
</div>
<div class="d-flex justify-content-center">
<div *ngIf="datasetDrafts && datasetDrafts.length > 0" class="d-flex justify-content-center">
<button type="button" class="btn-load-more" (click)="loadMore()">{{'GENERAL.ACTIONS.LOAD-MORE' | translate}}</button>
</div>

View File

@ -130,7 +130,7 @@
</div>
</div>
</div>
<div class="d-flex justify-content-center">
<div *ngIf="allRecentActivities && allRecentActivities.length > 0" class="d-flex justify-content-center">
<button type="button" class="btn-load-more" (click)="loadMore()">{{'GENERAL.ACTIONS.LOAD-MORE' | translate}}</button>
</div>
</div>

View File

@ -67,7 +67,7 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn
allDataTableRequest.criteria = new RecentActivityCriteria();
allDataTableRequest.criteria.like = "";
this.dashboardService
.getRecentAcitvity(allDataTableRequest)
.getRecentActivity(allDataTableRequest)
.subscribe(response => {
this.allRecentActivities = response;
this.totalCountRecentEdited.emit(this.pageSize);
@ -370,7 +370,7 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn
request.criteria = new RecentActivityCriteria();
request.criteria.like = "";
this.dashboardService.getRecentAcitvity(request).pipe(takeUntil(this._destroyed)).subscribe(result => {
this.dashboardService.getRecentActivity(request).pipe(takeUntil(this._destroyed)).subscribe(result => {
if (!result) { return []; }
this.allRecentActivities = this.allRecentActivities.concat(result);
});

View File

@ -61,7 +61,7 @@
</mat-menu>
</div>
</div>
<div class="d-flex justify-content-center">
<div *ngIf="datasetActivities && datasetActivities.length > 0" class="d-flex justify-content-center">
<button type="button" class="btn-load-more" (click)="loadMore()">{{'GENERAL.ACTIONS.LOAD-MORE' | translate}}</button>
</div>
</div>

View File

@ -67,7 +67,7 @@
</mat-menu>
</div>
</div>
<div class="d-flex justify-content-center">
<div *ngIf="dmpActivities && dmpActivities.length > 0" class="d-flex justify-content-center">
<button type="button" class="btn-load-more" (click)="loadMore()">{{'GENERAL.ACTIONS.LOAD-MORE' | translate}}</button>
</div>
</div>

View File

@ -409,8 +409,8 @@ textarea {
p {
text-align: left;
font-family: 'Roboto', sans-serif;
font-weight: 300;
font-size: 1.25rem;
/* font-weight: 300;
font-size: 1.25rem; */
letter-spacing: 0px;
color: #212121;
}
@ -648,6 +648,15 @@ hr {
padding-right: .5rem;
}
.btn-load-more {
border: 2px solid #212121;
border-radius: 30px;
opacity: 1;
width: 132px;
height: 40px;
margin-top: 4.125rem;
}
@media (min-width: 576px) {
.container {
max-width: 540px;

View File

@ -397,7 +397,9 @@
"VERSION": "Version",
"CONTAINED-DATASETS": "Contained Dataset Descriptions",
"TEXT-INFO": "Information in a DMP show how datasets have been collected and/or generated, how they have been processed and analysed, i.e. using which tools, standards, methodologies etc, but also where and how datasets are backed up, published and preserved, including any costs associated with personnel dedicated for data curation/ stewardship activities or costs for acquiring or building data management services.",
"TEXT-INFO-QUESTION": "Not sure how a DMP looks in practice? Browse Public DMPs and LIBER community in Zenodo to get an idea!",
"TEXT-INFO-QUESTION": "Not sure how a DMP looks in practice? Browse Public DMPs and",
"LINK-ZENODO": "LIBER community in Zenodo",
"GET-IDEA": "to get an idea!",
"COLUMNS": {
"NAME": "Name",
"GRANT": "Grant",

View File

@ -396,7 +396,9 @@
"VERSION": "Versión",
"CONTAINED-DATASETS": "Descripción del Dataset contenidos",
"TEXT-INFO": "Information in a DMP show how datasets have been collected and/or generated, how they have been processed and analysed, i.e. using which tools, standards, methodologies etc, but also where and how datasets are backed up, published and preserved, including any costs associated with personnel dedicated for data curation/ stewardship activities or costs for acquiring or building data management services. Not sure how a DMP looks in practice? Browse Public DMPs and LIBER community in Zenodo to get an idea!",
"TEXT-INFO-QUESTION": "Not sure how a DMP looks in practice? Browse Public DMPs and LIBER community in Zenodo to get an idea!",
"TEXT-INFO-QUESTION": "Not sure how a DMP looks in practice? Browse Public DMPs and",
"LINK-ZENODO": "LIBER community in Zenodo",
"GET-IDEA": "to get an idea!",
"COLUMNS": {
"NAME": "Nombre",
"GRANT": "Subvención",

View File

@ -396,7 +396,9 @@
"VERSION": "Έκδοση",
"CONTAINED-DATASETS": "Δεδομένα που συμπεριλαμβάνει",
"TEXT-INFO": "Information in a DMP show how datasets have been collected and/or generated, how they have been processed and analysed, i.e. using which tools, standards, methodologies etc, but also where and how datasets are backed up, published and preserved, including any costs associated with personnel dedicated for data curation/ stewardship activities or costs for acquiring or building data management services. Not sure how a DMP looks in practice? Browse Public DMPs and LIBER community in Zenodo to get an idea!",
"TEXT-INFO-QUESTION": "Not sure how a DMP looks in practice? Browse Public DMPs and LIBER community in Zenodo to get an idea!",
"TEXT-INFO-QUESTION": "Not sure how a DMP looks in practice? Browse Public DMPs and",
"LINK-ZENODO": "LIBER community in Zenodo",
"GET-IDEA": "to get an idea!",
"COLUMNS": {
"NAME": "Τίτλος",
"GRANT": "Επιχορήγηση",