From f7eba0b68f6ba138bf0f4a6638c64409259be7ea Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 4 Sep 2020 15:41:32 +0000 Subject: [PATCH] --- ayanova/src/views/ay-report-edit.vue | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index 445f9498..b0c9cf7c 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -134,12 +134,11 @@ import * as monaco from "monaco-editor"; /*TODO: - -Immediately render last report code needs proper implementation for both widget and widgets - currently it's nonsense - "Design" translation should be "Report editor" +Mobile view should include a big warning not supported small screens + But still show the UI in case they can still work with it in an emerg + Load test with HUGE data, make it crash! diagnostic code that returns helpful information on render failure would be nice and cut way back on technical support hassles @@ -899,6 +898,22 @@ function generateMenu(vm) { }); } + //EXPORT + if (vm.$route.params.recordid != 0) { + let href = window.$gz.api.genericDownloadUrl( + "report/export/" + vm.$route.params.recordid + ); + + menuOptions.menuItems.push({ + title: "Export", + icon: "fa-file-download", + href: href, + target: "_blank", + key: FORM_KEY + ":export", + vm: vm + }); + } + window.$gz.eventBus.$emit("menu-change", menuOptions); } /////////////////////////////////