mirror of
https://github.com/nasa/openmct.git
synced 2025-04-10 04:40:05 +00:00
[Create] Restrict Create to certain types
Restrict the Create action to types with a 'creation' feature; WTD-705.
This commit is contained in:
parent
5c34382933
commit
b073e3d553
@ -45,7 +45,9 @@ define(
|
||||
}
|
||||
|
||||
// Introduce one create action per type
|
||||
return typeService.listTypes().map(function (type) {
|
||||
return typeService.listTypes().filter(function (type) {
|
||||
return type.hasFeature("creation");
|
||||
}).map(function (type) {
|
||||
return new CreateAction(
|
||||
type,
|
||||
destination,
|
||||
|
Loading…
x
Reference in New Issue
Block a user