mirror of
https://github.com/nasa/openmct.git
synced 2025-05-06 10:38:23 +00:00
make clear data indicator a configurable option (#3206)
This commit is contained in:
parent
25bb9939d6
commit
7221dc1ac6
@ -113,7 +113,10 @@
|
|||||||
openmct.install(openmct.plugins.LADTable());
|
openmct.install(openmct.plugins.LADTable());
|
||||||
openmct.install(openmct.plugins.Filters(['table', 'telemetry.plot.overlay']));
|
openmct.install(openmct.plugins.Filters(['table', 'telemetry.plot.overlay']));
|
||||||
openmct.install(openmct.plugins.ObjectMigration());
|
openmct.install(openmct.plugins.ObjectMigration());
|
||||||
openmct.install(openmct.plugins.ClearData(['table', 'telemetry.plot.overlay', 'telemetry.plot.stacked']));
|
openmct.install(openmct.plugins.ClearData(
|
||||||
|
['table', 'telemetry.plot.overlay', 'telemetry.plot.stacked'],
|
||||||
|
{indicator: true}
|
||||||
|
));
|
||||||
openmct.start();
|
openmct.start();
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
@ -29,10 +29,13 @@ define([
|
|||||||
ClearDataAction,
|
ClearDataAction,
|
||||||
Vue
|
Vue
|
||||||
) {
|
) {
|
||||||
return function plugin(appliesToObjects) {
|
return function plugin(appliesToObjects, options = {indicator: true}) {
|
||||||
|
let installIndicator = options.indicator;
|
||||||
|
|
||||||
appliesToObjects = appliesToObjects || [];
|
appliesToObjects = appliesToObjects || [];
|
||||||
|
|
||||||
return function install(openmct) {
|
return function install(openmct) {
|
||||||
|
if (installIndicator) {
|
||||||
let component = new Vue ({
|
let component = new Vue ({
|
||||||
provide: {
|
provide: {
|
||||||
openmct
|
openmct
|
||||||
@ -47,6 +50,7 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
openmct.indicators.add(indicator);
|
openmct.indicators.add(indicator);
|
||||||
|
}
|
||||||
|
|
||||||
openmct.contextMenu.registerAction(new ClearDataAction.default(openmct, appliesToObjects));
|
openmct.contextMenu.registerAction(new ClearDataAction.default(openmct, appliesToObjects));
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user