Change button

This commit is contained in:
MahdiTurki 2020-04-27 12:37:18 +01:00 committed by Chocobozzz
parent 49c4dd7ec3
commit bd49f8e988
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 21 additions and 11 deletions

View File

@ -9,7 +9,7 @@
{{ follower }} {{ follower }}
</a> </a>
<a id="showMore" href="javascript:;" *ngIf="!showMoreFollowers" (click)="loadAllFollowers()" (click)= "showMoreFollowers=true">Show full list</a> <a i18n class="showMore" *ngIf="!showMoreFollowers" (click)="loadAllFollowers()" (click)= "showMoreFollowers=true">Show full list</a>
</div> </div>
<div class="col-xl-6 col-md-12"> <div class="col-xl-6 col-md-12">
@ -17,11 +17,19 @@
<div i18n class="no-results" *ngIf="followingsPagination.totalItems === 0">This instance is not following any other.</div> <div i18n class="no-results" *ngIf="followingsPagination.totalItems === 0">This instance is not following any other.</div>
<<<<<<< HEAD
||||||| parent of 932e04c48 (Change button)
<div i18n class="no-results" *ngIf="followingsPagination.totalItems === 0">This instance does not have instances followings.</div>
=======
<div i18n class="no-results" *ngIf="followingsPagination.totalItems === 0">This instance does not have instances followings.</div>
>>>>>>> 932e04c48 (Change button)
<a *ngFor="let following of followings" [href]="buildLink(following)" target="_blank" rel="noopener noreferrer"> <a *ngFor="let following of followings" [href]="buildLink(following)" target="_blank" rel="noopener noreferrer">
{{ following }} {{ following }}
</a> </a>
<a id="showMore" href="javascript:;" *ngIf="!showMoreFollowings" (click)="loadAllFollowings()" (click)= "showMoreFollowings=true">Show full list</a> <a i18n class="showMore" *ngIf="!showMoreFollowings" (click)="loadAllFollowings()" (click)= "showMoreFollowings=true">Show full list</a>
</div> </div>
</div> </div>

View File

@ -17,6 +17,8 @@ a {
justify-content: flex-start; justify-content: flex-start;
} }
#showMore { .showMore {
color: black; @include peertube-button-link;
padding: 0;
text-align: left;
} }

View File

@ -14,8 +14,8 @@ export class AboutFollowsComponent implements OnInit {
followers: string[] = [] followers: string[] = []
followings: string[] = [] followings: string[] = []
showMoreFollowers = false; showMoreFollowers = false
showMoreFollowings = false; showMoreFollowings = false
followersPagination: ComponentPagination = { followersPagination: ComponentPagination = {
currentPage: 1, currentPage: 1,
@ -49,7 +49,7 @@ export class AboutFollowsComponent implements OnInit {
} }
loadAllFollowings () { loadAllFollowings () {
while(hasMoreItems(this.followingsPagination)) { while (hasMoreItems(this.followingsPagination)) {
this.followingsPagination.currentPage += 1 this.followingsPagination.currentPage += 1
this.loadMoreFollowings() this.loadMoreFollowings()
@ -57,10 +57,10 @@ export class AboutFollowsComponent implements OnInit {
} }
loadAllFollowers () { loadAllFollowers () {
while(hasMoreItems(this.followersPagination)) { while (hasMoreItems(this.followersPagination)) {
this.followersPagination.currentPage += 1 this.followersPagination.currentPage += 1
this.loadMoreFollowers(); this.loadMoreFollowers()
} }
} }