~zyga/checkbox/remove-libxml2

« back to all changes in this revision

Viewing changes to checkbox-gui/checkbox-gui/qml/SubmissionDialog.qml

  • Committer: Daniel Manrique
  • Author(s): Sylvain Pineau
  • Date: 2015-05-26 14:22:43 UTC
  • mfrom: (3810.1.1 launchpad/fix-1452217-gui)
  • Revision ID: daniel_manrique-20150526142243-t8vbiwi212wzthed
"automatic merge of lp:~sylvain-pineau/checkbox/fix-1452217-gui/ by tarmac [r=zyga][bug=1452217][author=sylvain-pineau]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        function initialize() {
113
113
            reportTypeModel.append({"type": "xml", "name": i18n.tr("XML Report (*.xml)")})
114
114
            reportTypeModel.append({"type": "xlsx", "name": i18n.tr("XLSX Report (*.xlsx)")})
 
115
            reportTypeModel.append({"type": "json", "name": i18n.tr("JSON Report (*.json)")})
115
116
        }
116
117
 
117
118
        id: reportTypeModel
149
150
                    i18n.tr("XLSX files (*.xlsx)"))
150
151
                success = guiEngine.GuiExportSessionToFileAsXLSX(path, ["with-sys-info", "with-summary", "with-job-description", "with-text-attachments"]);
151
152
            }
 
153
            else if (reportTypeSelect.selectedIndex == 2) {
 
154
                var path = guiEngine.GetSaveFileName('submission.json',
 
155
                    i18n.tr("JSON files (*.json)"))
 
156
                success = guiEngine.GuiExportSessionToFileAsJSON(path, ["with-certification-status", "with-job-defs", "with-io-log", "with-comments"]);
 
157
            }
152
158
 
153
159
            if (success) {
154
160
                runmanagerview.reportIsSaved = success;