Skip to content

Commit

Permalink
Don't allow editing line more when not editing display layout
Browse files Browse the repository at this point in the history
  • Loading branch information
shefalijoshi committed Jul 31, 2023
1 parent 3ae14cf commit fcd9024
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/plugins/displayLayout/components/LineView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ export default {
type: Number,
required: true
},
multiSelect: Boolean
multiSelect: Boolean,
isEditing: {
type: Boolean,
required: true
}

Check warning on line 108 in src/plugins/displayLayout/components/LineView.vue

View check run for this annotation

Codecov / codecov/patch

src/plugins/displayLayout/components/LineView.vue#L108

Added line #L108 was not covered by tests
},
data() {
return {
Expand All @@ -114,7 +118,7 @@ export default {
showFrameEdit() {
let layoutItem = this.selection.length > 0 && this.selection[0][0].context.layoutItem;
return !this.multiSelect && layoutItem && layoutItem.id === this.item.id;
return this.isEditing && !this.multiSelect && layoutItem && layoutItem.id === this.item.id;
},
position() {
let { x, y, x2, y2 } = this.item;
Expand Down

0 comments on commit fcd9024

Please sign in to comment.