mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
fixed color scheme editing - fixes #5742
This commit is contained in:
parent
14cf0a574e
commit
4fe4ae8b9b
2 changed files with 1 additions and 7 deletions
|
@ -2,6 +2,6 @@ div(
|
|||
[style.background]='model',
|
||||
ngx-colors-trigger,
|
||||
[(ngModel)]='model',
|
||||
(ngModelChange)='onChange($event)',
|
||||
(ngModelChange)='modelChange.emit($event)',
|
||||
[ngbTooltip]='hint'
|
||||
) {{ title }}
|
||||
|
|
|
@ -11,10 +11,4 @@ export class ColorPickerComponent {
|
|||
@Input() title: string
|
||||
@Input() hint: string
|
||||
@Output() modelChange = new EventEmitter<string>()
|
||||
|
||||
onChange (value: string): void {
|
||||
if (value !== this.model) {
|
||||
this.modelChange.emit(value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue