mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 05:37:53 +00:00
[Selection] Force single select
...as a simplifying assumption for the initial prototype.
This commit is contained in:
parent
20f3b57ddd
commit
1dba551fc6
@ -29,6 +29,7 @@ define(['EventEmitter'], function (EventEmitter) {
|
||||
Selection.prototype = Object.create(EventEmitter.prototype);
|
||||
|
||||
Selection.prototype.add = function (path) {
|
||||
this.clear(); // Only allow single select as initial simplification
|
||||
this.selected.push(path);
|
||||
this.emit('change');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user