Change button
This commit is contained in:
parent
49c4dd7ec3
commit
bd49f8e988
|
@ -9,7 +9,7 @@
|
|||
{{ follower }}
|
||||
</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 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>
|
||||
|
||||
<<<<<<< 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">
|
||||
{{ following }}
|
||||
</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>
|
||||
|
|
|
@ -17,6 +17,8 @@ a {
|
|||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
#showMore {
|
||||
color: black;
|
||||
.showMore {
|
||||
@include peertube-button-link;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
|
|
@ -14,8 +14,8 @@ export class AboutFollowsComponent implements OnInit {
|
|||
followers: string[] = []
|
||||
followings: string[] = []
|
||||
|
||||
showMoreFollowers = false;
|
||||
showMoreFollowings = false;
|
||||
showMoreFollowers = false
|
||||
showMoreFollowings = false
|
||||
|
||||
followersPagination: ComponentPagination = {
|
||||
currentPage: 1,
|
||||
|
@ -49,7 +49,7 @@ export class AboutFollowsComponent implements OnInit {
|
|||
}
|
||||
|
||||
loadAllFollowings () {
|
||||
while(hasMoreItems(this.followingsPagination)) {
|
||||
while (hasMoreItems(this.followingsPagination)) {
|
||||
this.followingsPagination.currentPage += 1
|
||||
|
||||
this.loadMoreFollowings()
|
||||
|
@ -57,10 +57,10 @@ export class AboutFollowsComponent implements OnInit {
|
|||
}
|
||||
|
||||
loadAllFollowers () {
|
||||
while(hasMoreItems(this.followersPagination)) {
|
||||
while (hasMoreItems(this.followersPagination)) {
|
||||
this.followersPagination.currentPage += 1
|
||||
|
||||
this.loadMoreFollowers();
|
||||
|
||||
this.loadMoreFollowers()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue