]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Change button
authorMahdiTurki <mahditurki123@yahoo.fr>
Mon, 27 Apr 2020 11:37:18 +0000 (12:37 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 14 Dec 2020 08:57:41 +0000 (09:57 +0100)
client/src/app/+about/about-follows/about-follows.component.html
client/src/app/+about/about-follows/about-follows.component.scss
client/src/app/+about/about-follows/about-follows.component.ts

index fbca9f3b08adf136c19af2710f3e29d057234026..50e00b6516dfd7633c82a14e38e5cd8d83c69788 100644 (file)
@@ -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">
 
     <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>
index 32a015e89b24779e8ae2630da8a36bbdbb60e6f1..f014847023aa275571509ec5963df99861862b61 100644 (file)
@@ -17,6 +17,8 @@ a {
   justify-content: flex-start;
 }
 
-#showMore {
-  color: black;
+.showMore {
+  @include peertube-button-link;
+  padding: 0;
+  text-align: left;
 }
index d88974b59ff3c32e767a7354921de29cc18fd098..e5526248c61904728074d8ee7f7b597e7f726e78 100644 (file)
@@ -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()
     }
   }