mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 22:58:14 +00:00
[Edit] Default to inclusive mode
Default to inclusive mode in Edit mode toolbar; simplifies adding additional toolbar elements for Fixed Position view, WTD-881.
This commit is contained in:
@ -108,7 +108,7 @@ define(
|
||||
function isApplicable(item) {
|
||||
var property = (item || {}).property,
|
||||
method = (item || {}).method,
|
||||
exclusive = !(item || {}).inclusive;
|
||||
exclusive = (item || {}).exclusive;
|
||||
|
||||
// Check if a selected item defines this property
|
||||
function hasProperty(selected) {
|
||||
|
@ -57,6 +57,7 @@ define(
|
||||
commit("Changes from toolbar.");
|
||||
}
|
||||
|
||||
// Initialize toolbar (expose object to parent scope)
|
||||
function initialize() {
|
||||
// If we have been asked to expose toolbar state...
|
||||
if (attrs.toolbar) {
|
||||
@ -67,7 +68,7 @@ define(
|
||||
|
||||
// Represent a domain object using this definition
|
||||
function represent(representation) {
|
||||
//
|
||||
// Expose the toolbar object to the parent scope
|
||||
initialize();
|
||||
// Clear any existing selection
|
||||
scope.selection = [];
|
||||
|
Reference in New Issue
Block a user