mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
[Create] Clarify function naming
Per review feedback, https://github.com/nasa/openmctweb/pull/666#discussion_r52625960
This commit is contained in:
parent
53a49a671b
commit
43d497e069
@ -83,7 +83,9 @@ define(
|
||||
CopyService.prototype.perform = function (domainObject, parent, filter) {
|
||||
var policyService = this.policyService;
|
||||
|
||||
function completeFilter(domainObject) {
|
||||
// Combines caller-provided filter (if any) with the
|
||||
// baseline behavior of respecting creation policy.
|
||||
function filterWithPolicy(domainObject) {
|
||||
return (!filter || filter(domainObject)) &&
|
||||
policyService.allow(
|
||||
"creation",
|
||||
@ -95,7 +97,7 @@ define(
|
||||
return new CopyTask(
|
||||
domainObject,
|
||||
parent,
|
||||
completeFilter,
|
||||
filterWithPolicy,
|
||||
this.$q
|
||||
).perform();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user