mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +00:00
[Browse] Changed action key
Changed the key for the context menu action from 'contextMenu' to 'menu'. #33.
This commit is contained in:
@ -52,14 +52,14 @@ define(
|
|||||||
console.log('event ', event);
|
console.log('event ', event);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
context = {key: 'contextMenu', event: event, domainObject: domainObject};
|
context = {key: 'menu', event: event, domainObject: domainObject};
|
||||||
domainObject.getCapability('action').perform(context);
|
domainObject.getCapability('action').perform(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
// attempt to set the domain object
|
// attempt to set the domain object
|
||||||
$scope.$watch('domainObject', function (c) {
|
$scope.$watch('domainObject', function (c) {
|
||||||
domainObject = c;
|
domainObject = c;
|
||||||
console.log('watcher called');
|
//console.log('watcher called');
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
],
|
],
|
||||||
"actions": [
|
"actions": [
|
||||||
{
|
{
|
||||||
"key": "contextMenu",
|
"key": "menu",
|
||||||
"implementation": "actions/ContextMenuAction.js",
|
"implementation": "actions/ContextMenuAction.js",
|
||||||
"depends": [ "$compile", "$document", "$window", "$rootScope" ]
|
"depends": [ "$compile", "$document", "$window", "$rootScope" ]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user