This commit is contained in:
2019-06-12 18:59:39 +00:00
parent 58e46dde5e
commit fa7028d370
3 changed files with 42 additions and 19 deletions

View File

@@ -182,6 +182,17 @@ function clickHandler(menuItem) {
break;
case "duplicate":
m.vm.duplicate();
break;
case "report":
m.vm.$gzdialog
.getReportChoice(m.vm, m.vm.$gzreport.availableReports())
.then(result => {
m.vm.$gzevent.$emit(
"notify-success",
FORM_KEY + "::report click, selected is: [" + result + "]"
);
});
break;
default:
m.vm.$gzevent.$emit(
@@ -288,8 +299,6 @@ export default {
.fetch(ltKeysRequired)
.then(() => {
//don't have access to local data object until here
// vm.rights = this.$gzrole.getRights(this, this.$gztype.Widget);
// console.log("BEFORECREATE: setting rights");
vm.formState.ready = true;
})
.catch(err => {