Browse Source

Mark style categories as changed whenever any of their properties have changed

pull/4023/head
Andrew Kingston 5 years ago
parent
commit
19d71e318b
  1. 8
      packages/builder/src/components/userInterface/PropertyGroup.svelte

8
packages/builder/src/components/userInterface/PropertyGroup.svelte

@ -11,9 +11,15 @@
export let open = false
$: style = componentInstance["_styles"][styleCategory] || {}
$: changed = properties.some(
prop =>
style[prop.key] != null &&
style[prop.key] !== "" &&
style[prop.key] !== prop.initialValue
)
</script>
<DetailSummary {name} on:open show={open} thin>
<DetailSummary name={`${name}${changed ? ' *' : ''}`} on:open show={open} thin>
<div>
{#each properties as props}
<PropertyControl

Loading…
Cancel
Save