Skip to content

Commit

Permalink
Merge pull request #66 from DrewLazzeriKitware/rename-property
Browse files Browse the repository at this point in the history
fix(PropertyPanel): Rename internal variables to match doc / model
  • Loading branch information
jourdain authored Feb 24, 2021
2 parents 7c31f66 + ec01c9b commit 5a75e0c
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 5a75e0c

Please sign in to comment.