Skip to content

Commit

Permalink
#364 bugfix: error when trying to export unsaved new pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mvi-eea-sk committed Jul 21, 2015
1 parent 7184656 commit 7cf4090
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,10 @@ public void buttonClick(ClickEvent event) {
buttonExport.addClickListener(new com.vaadin.ui.Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
if (pipeline.getId() == null) { // its new, not yet saved pipeline
Notification.show(Messages.getString("PipelineEdit.export.fail.not.saved"), Notification.Type.ERROR_MESSAGE);
return;
}
final PipelineExport dialog = new PipelineExport(exportService, pipeline);
UI.getCurrent().addWindow(dialog);
dialog.bringToFront();
Expand Down
1 change: 1 addition & 0 deletions frontend/src/main/resources/frontend-messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ PipelineEdit.distribute.horizontally=Distribute horizontally
PipelineEdit.distribute.vertically=Distribute vertically
PipelineEdit.exapand=Expand pipeline detail
PipelineEdit.export=Export
PipelineEdit.export.fail.not.saved=Pipeline was not saved yet. Save it and try again.
PipelineEdit.icon.align.bottom=Align bottom
PipelineEdit.icon.align.left=Align left
PipelineEdit.icon.align.right=Align right
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ PipelineEdit.distribute.horizontally = Rozmiestni\u0165 horizont\u
PipelineEdit.distribute.vertically = Rozmiestni\u0165 vertik\u00E1lne
PipelineEdit.exapand = Expandova\u0165 detail procesu
PipelineEdit.export = Export
PipelineEdit.export.fail.not.saved = Proces nebol ulo\u017Een\u00FD. Ulo\u017Ete proces a sk\u00FAste znova.
PipelineEdit.icon.align.bottom = Zarovna\u0165 nadol
PipelineEdit.icon.align.left = Zarovna\u0165 na\u013Eavo
PipelineEdit.icon.align.right = Zarovna\u0165 napravo
Expand Down

0 comments on commit 7cf4090

Please sign in to comment.