openmct/platform/import-export
Deep Tailor 6ab468086a
Lock views and prevent editing (#3094)
* working lock and unlock

* prevent flexible layout drop hints from showing

* fix lint issue

* wip

* disable mousedown when not editing in DisplayLayout

* continued wip

* Cherrypick new glyphs from add-new-glyphs-062320

* More new glyphs, updated art

- New glyphs: icon-unlocked and icon-target;
- Updated art for icon-lock glyph;

* Edit toggle refinements WIP

- Markup, CSS in BrowseBar.vue;

* More new glyphs, updated art

- New glyphs: icon-unlocked and icon-target;
- Updated art for icon-lock glyph;

* Edit toggle refinements

- Replaced toggle switch with button;

* prevent styling changes when locked

* fix lint issues

* fix tests

* make reviewer suggested changes

Co-authored-by: charlesh88 <charlesh88@gmail.com>
2020-06-29 13:14:42 -07:00
..
src/actions Lock views and prevent editing (#3094) 2020-06-29 13:14:42 -07:00
test/actions Merged from master 2019-12-06 09:45:21 -08:00
bundle.js enable plugin path (#2549) 2019-11-21 13:11:09 -08:00
README.md Added brief readmes for all plugins. (#2184) 2018-10-03 18:55:27 -07:00

Import / Export Plugin

The Import/Export plugin allows objects to be exported as JSON files. This allows for sharing of objects between users who are not using a shared persistence store. It also allows object trees to be backed up. Additionally, object trees exported using this tool can then be exposed as read-only static root trees using the Static Root Plugin.

Upon installation it will add two new context menu actions to allow import and export of objects. Initiating the Export action on an object will produce a JSON file that includes the object and all of its composed children. Selecting Import on an object will allow the user to import a previously exported object tree as a child of the selected object.

Installation

openmct.install(openmct.plugins.ImportExport())