mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 22:58:14 +00:00
Don't allow editing line more when not editing display layout (#6858)
This commit is contained in:
@ -101,7 +101,11 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
multiSelect: Boolean
|
multiSelect: Boolean,
|
||||||
|
isEditing: {
|
||||||
|
type: Boolean,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -114,7 +118,7 @@ export default {
|
|||||||
showFrameEdit() {
|
showFrameEdit() {
|
||||||
let layoutItem = this.selection.length > 0 && this.selection[0][0].context.layoutItem;
|
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() {
|
position() {
|
||||||
let { x, y, x2, y2 } = this.item;
|
let { x, y, x2, y2 } = this.item;
|
||||||
|
Reference in New Issue
Block a user