Don't allow editing line more when not editing display layout (#6858)

This commit is contained in:
Shefali Joshi 2023-07-31 10:16:52 -07:00 committed by GitHub
parent f0ef93dd3f
commit 50559ac502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,11 @@ export default {
type: Number,
required: true
},
multiSelect: Boolean
multiSelect: Boolean,
isEditing: {
type: Boolean,
required: true
}
},
data() {
return {
@ -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;