This commit is contained in:
@@ -137,8 +137,6 @@ import * as monaco from "monaco-editor";
|
|||||||
/*TODO:
|
/*TODO:
|
||||||
|
|
||||||
|
|
||||||
BUGBUG: after error on preview can't save
|
|
||||||
|
|
||||||
need to modify reportData data object to accept meta data outside of the main data collection
|
need to modify reportData data object to accept meta data outside of the main data collection
|
||||||
so can add all the bits that would appear on report potentially or be used on page like
|
so can add all the bits that would appear on report potentially or be used on page like
|
||||||
datalist name, filter options, what have you
|
datalist name, filter options, what have you
|
||||||
@@ -745,6 +743,20 @@ Handlebars.registerHelper('loud', function (aString) {
|
|||||||
}
|
}
|
||||||
reportDataOptions.ReportId = vm.obj.id;
|
reportDataOptions.ReportId = vm.obj.id;
|
||||||
|
|
||||||
|
//Meta data from client for use by report script
|
||||||
|
reportDataOptions.ClientMeta = {
|
||||||
|
UserName: vm.$store.state.userName,
|
||||||
|
Authorization: "Bearer " + window.$gz.store.state.apiToken, //api token for using api methods as current user viewing report
|
||||||
|
TimeZoneName: window.$gz.locale.getBrowserTimeZoneName(),
|
||||||
|
LanguageName: window.$gz.locale.getBrowserLanguages(),
|
||||||
|
Hour12: window.$gz.locale.getHour12(),
|
||||||
|
CurrencyName: window.$gz.locale.getCurrencyName(),
|
||||||
|
LanguageName: window.$gz.locale.getBrowserFirstLanguage(),
|
||||||
|
DefaultLocale: window.$gz.locale
|
||||||
|
.getBrowserFirstLanguage()
|
||||||
|
.split("-", 1)[0]
|
||||||
|
};
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: vm,
|
||||||
loading: true
|
loading: true
|
||||||
|
|||||||
Reference in New Issue
Block a user