This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
export default {
|
export default {
|
||||||
version: "8.0.0-alpha.10",
|
version: "8.0.0-alpha.11",
|
||||||
copyright: "© 1999-2020, Ground Zero Tech-Works Inc."
|
copyright: "© 1999-2020, Ground Zero Tech-Works Inc."
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -700,13 +700,13 @@ Handlebars.registerHelper('loud', function (aString) {
|
|||||||
// window.open("http://localhost:7575/api/v8/report/poc", "_blank");
|
// window.open("http://localhost:7575/api/v8/report/poc", "_blank");
|
||||||
|
|
||||||
let pdf = await window.$gz.api.upsert("report/post-poc", {
|
let pdf = await window.$gz.api.upsert("report/post-poc", {
|
||||||
name: "Demko"
|
name: "TheSnatcher"
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("PDF: ", pdf);
|
console.log("PDF: ", pdf);
|
||||||
let reportUrl = window.$gz.api.reportDownloadUrl(pdf.data);
|
let reportUrl = window.$gz.api.reportDownloadUrl(pdf.data);
|
||||||
console.log("Report url:", reportUrl);
|
console.log("Report url:", reportUrl);
|
||||||
if (window.open(reportUrl, "_blank") == null) {
|
if (window.open(reportUrl, "ayreport") == null) {
|
||||||
//window open failed, maybe popup blocker
|
//window open failed, maybe popup blocker
|
||||||
//show error to user
|
//show error to user
|
||||||
alert("ERROR OPENING REPORT WINDOW IN BROWSER");
|
alert("ERROR OPENING REPORT WINDOW IN BROWSER");
|
||||||
|
|||||||
Reference in New Issue
Block a user