Skip to content

Commit

Permalink
fix(PropertyPanel): Rename internal variables to match doc / model
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Exposed property name have changed
  • Loading branch information
DrewLazzeriKitware committed Feb 24, 2021
1 parent 7c31f66 commit ec01c9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/core/PropertyPanel/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
PropertyFactory,
},
props: {
input: {
panelAttributes: {
required: true,
},
viewData: {
Expand Down
12 changes: 6 additions & 6 deletions src/components/core/PropertyPanel/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
>
<v-layout row wrap>
<v-flex
v-for="property in input"
:key="property.title"
v-for="attribute in panelAttributes"
:key="attribute.title"
xs12
>
<div :style="{ display: getPropertyDisplay(property) }">
<div :style="{ display: getPropertyDisplay(attribute) }">
<v-card>
<v-card-title :class="$style.propertyHeader">{{ property.title }}</v-card-title>
<v-card-title :class="$style.propertyHeader">{{ attribute.title }}</v-card-title>
<v-card-text>
<template v-for="(content, i) in property.contents">
<template v-for="(parameter, i) in attribute.contents">
<property-factory
:key="i"
:prop="content"
:prop="parameter"
:viewData="viewData"
@change="updateViewData"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/core/WorkflowContent/template.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<v-container fluid :class="$style.container">
<property-panel
:input="panelData"
:panelAttributes="panelData"
:viewData="viewData"
/>
</v-container>

0 comments on commit ec01c9b

Please sign in to comment.