mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
Modified EditActionPolicy to prevent editing of table views unless object is a table type
This commit is contained in:
parent
eff46b076c
commit
96af931c0b
@ -56,7 +56,10 @@ define(
|
|||||||
// A view is editable unless explicitly flagged as not
|
// A view is editable unless explicitly flagged as not
|
||||||
(views || []).forEach(function (view) {
|
(views || []).forEach(function (view) {
|
||||||
if (view.editable === true ||
|
if (view.editable === true ||
|
||||||
(view.key === 'plot' && type.getKey() === 'telemetry.panel')) {
|
(view.key === 'plot' && type.getKey() === 'telemetry.panel') ||
|
||||||
|
(view.key === 'table' && type.getKey() === 'table') ||
|
||||||
|
(view.key === 'rt-table' && type.getKey() === 'rttable')
|
||||||
|
) {
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -133,7 +133,7 @@ define([
|
|||||||
"telemetry"
|
"telemetry"
|
||||||
],
|
],
|
||||||
"delegation": true,
|
"delegation": true,
|
||||||
"editable": true
|
"editable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Real-time Table",
|
"name": "Real-time Table",
|
||||||
@ -144,7 +144,7 @@ define([
|
|||||||
"telemetry"
|
"telemetry"
|
||||||
],
|
],
|
||||||
"delegation": true,
|
"delegation": true,
|
||||||
"editable": true
|
"editable": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"directives": [
|
"directives": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user