mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 05:50:08 +00:00
fixed color scheme editing - fixes #5742
This commit is contained in:
parent
14cf0a574e
commit
4fe4ae8b9b
@ -2,6 +2,6 @@ div(
|
|||||||
[style.background]='model',
|
[style.background]='model',
|
||||||
ngx-colors-trigger,
|
ngx-colors-trigger,
|
||||||
[(ngModel)]='model',
|
[(ngModel)]='model',
|
||||||
(ngModelChange)='onChange($event)',
|
(ngModelChange)='modelChange.emit($event)',
|
||||||
[ngbTooltip]='hint'
|
[ngbTooltip]='hint'
|
||||||
) {{ title }}
|
) {{ title }}
|
||||||
|
@ -11,10 +11,4 @@ export class ColorPickerComponent {
|
|||||||
@Input() title: string
|
@Input() title: string
|
||||||
@Input() hint: string
|
@Input() hint: string
|
||||||
@Output() modelChange = new EventEmitter<string>()
|
@Output() modelChange = new EventEmitter<string>()
|
||||||
|
|
||||||
onChange (value: string): void {
|
|
||||||
if (value !== this.model) {
|
|
||||||
this.modelChange.emit(value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user