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:
parent
848f499def
commit
457bb213b2
116 changed files with 670 additions and 894 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue