Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Add feature to export quantum application archives (#32)
Browse files Browse the repository at this point in the history
* Add button to export QAAs

* Add data formats for image and QAA export

* Update tests

* Add empty check to options parameter

* Fix export test

* Avoid exception until QAA export is implemented

* Store workflow model in QAA

* Fix test case

* Start moving modeling extension to client

* Remove unused import

* Move quantum4bpmn JSON to resource folder in client

* Move QuantME utilities from plugin to core

* Move constants from plugin to core

* Move layouter to core

* Update package--lock files

* Start moving deployment functionality to core

* Move binding and deployment utils

* Move images to core

* Move attribute checker to core

* Move QuantMEMatcher

* Store config with active modeler

* Remove unnecassary local config in config plugin

* Download CSARs and add them to QAA on export

* Avoid duplicate export dialog for QAAs

* Add notification for the user about pending QAA export

* Update package-lock after final build
  • Loading branch information
wederbn authored Jul 20, 2021
1 parent 03432f4 commit c991f65
Show file tree
Hide file tree
Showing 64 changed files with 63,620 additions and 38,234 deletions.
16 changes: 13 additions & 3 deletions app/lib/menu/menu-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,23 @@ class MenuBuilder {

appendExportAs() {
const exportState = this.options.state.exportAs;
const enabled = exportState && exportState.length > 0;

const imageExportEnabled = exportState && exportState.length > 0;
this.menu.append(new MenuItem({
label: 'Export As Image',
enabled: enabled,
enabled: imageExportEnabled,
click: function() {
app.emit('menu:action', 'export-as', exportState || []);
app.emit('menu:action', 'export-as', exportState.filter(state => state !== 'zip') || []);
}
}));

const qaaExportEnabled = exportState && exportState.filter(state => state === 'zip').length > 0;
console.log('QAA export enabled...' + qaaExportEnabled);
this.menu.append(new MenuItem({
label: 'Export As QAA',
enabled: qaaExportEnabled,
click: function() {
app.emit('menu:action', 'export-as', 'zip');
}
}));

Expand Down
Loading

0 comments on commit c991f65

Please sign in to comment.