]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-main/angular/link.component.ts
Automatic colspan for tables
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / angular / link.component.ts
index 1f5975589472880e12df07c1d41d1108b57b5577..f2093496fdf375fb0d9f148c40f4d885164c4fc0 100644 (file)
@@ -14,14 +14,17 @@ export class LinkComponent implements OnInit {
   @Input() title?: string
 
   @Input() className?: string
+  @Input() inheritParentCSS = false
 
   @Input() tabindex: string | number
 
   builtClasses: string
 
   ngOnInit () {
-    this.builtClasses = this.className
-      ? this.className
-      : 'no-class'
+    this.builtClasses = this.className || ''
+
+    if (!this.builtClasses || this.inheritParentCSS) {
+      this.builtClasses += ' inherit-parent'
+    }
   }
 }