1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Refactor how we use icons

Inject them in an angular component so we can easily change their color
This commit is contained in:
Chocobozzz 2019-01-16 16:05:40 +01:00
parent 848f499def
commit 457bb213b2
No known key found for this signature in database
GPG key ID: 583A612D890159BE
116 changed files with 670 additions and 894 deletions

View file

@ -1,4 +1,5 @@
import { Component, Input } from '@angular/core'
import { GlobalIconName } from '@app/shared/icons/global-icon.component'
@Component({
selector: 'my-button',
@ -9,7 +10,7 @@ import { Component, Input } from '@angular/core'
export class ButtonComponent {
@Input() label = ''
@Input() className: string = undefined
@Input() icon: string = undefined
@Input() icon: GlobalIconName = undefined
@Input() title: string = undefined
getTitle () {