mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 03:06:54 +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
|
||||
(views || []).forEach(function (view) {
|
||||
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++;
|
||||
}
|
||||
});
|
||||
|
@ -133,7 +133,7 @@ define([
|
||||
"telemetry"
|
||||
],
|
||||
"delegation": true,
|
||||
"editable": true
|
||||
"editable": false
|
||||
},
|
||||
{
|
||||
"name": "Real-time Table",
|
||||
@ -144,7 +144,7 @@ define([
|
||||
"telemetry"
|
||||
],
|
||||
"delegation": true,
|
||||
"editable": true
|
||||
"editable": false
|
||||
}
|
||||
],
|
||||
"directives": [
|
||||
|
Loading…
Reference in New Issue
Block a user