projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP plugins: update plugin
[oweals/peertube.git]
/
client
/
src
/
app
/
shared
/
buttons
/
button.component.ts
diff --git
a/client/src/app/shared/buttons/button.component.ts
b/client/src/app/shared/buttons/button.component.ts
index 1a1162f0901aa87cfb3cb75ced66464d235b3aa6..cac5ad210ff9d6a609db9fba01feb5965861f2cb 100644
(file)
--- a/
client/src/app/shared/buttons/button.component.ts
+++ b/
client/src/app/shared/buttons/button.component.ts
@@
-1,4
+1,5
@@
import { Component, Input } from '@angular/core'
import { Component, Input } from '@angular/core'
+import { GlobalIconName } from '@app/shared/images/global-icon.component'
@Component({
selector: 'my-button',
@Component({
selector: 'my-button',
@@
-8,9
+9,10
@@
import { Component, Input } from '@angular/core'
export class ButtonComponent {
@Input() label = ''
export class ButtonComponent {
@Input() label = ''
- @Input() className
: string = undefined
- @Input() icon:
string
= undefined
+ @Input() className
= 'grey-button'
+ @Input() icon:
GlobalIconName
= undefined
@Input() title: string = undefined
@Input() title: string = undefined
+ @Input() loading = false
getTitle () {
return this.title || this.label
getTitle () {
return this.title || this.label