mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 17:45:02 +02:00
Cleaning up the old theme. (#2720)
This commit is contained in:
@@ -30,7 +30,12 @@
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
function pickColor (evt: MouseEvent) {
|
||||
showPopup(ColorsPopup, {}, eventToHTMLElement(evt), (newColor) => (value.color = newColor))
|
||||
showPopup(
|
||||
ColorsPopup,
|
||||
{ selected: value.color ? getPlatformColor(value.color) : undefined },
|
||||
eventToHTMLElement(evt),
|
||||
(newColor) => (value.color = newColor)
|
||||
)
|
||||
}
|
||||
|
||||
$: canSave = !isSaving && (value.name ?? '').length > 0
|
||||
|
||||
Reference in New Issue
Block a user