This commit is contained in:
@@ -37,7 +37,7 @@ function dealWithError(msg, vm) {
|
||||
//If a form instance was provided (vue instance)
|
||||
//then put the error into it
|
||||
if (vm) {
|
||||
if (vm.$ay.dev()) {
|
||||
if (vm.$ay.dev) {
|
||||
//make sure formState.appError is defined on data
|
||||
if (!window.$gz._.has(vm, "formState.appError")) {
|
||||
throw "DEV ERROR errorHandler::dealWithError -> formState.appError seems to be missing from form's vue data object";
|
||||
|
||||
@@ -138,7 +138,6 @@ import ayaNovaVersion from "../api/ayanova-version";
|
||||
export default {
|
||||
created() {
|
||||
let vm = this;
|
||||
|
||||
initForm(vm)
|
||||
.then(() => {
|
||||
vm.formState.ready = true;
|
||||
@@ -203,7 +202,7 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-info-circle",
|
||||
title: this.$ay.t("HelpAboutAyaNova"),
|
||||
title: vm.$ay.t("HelpAboutAyaNova"),
|
||||
helpUrl: "form-ay-about",
|
||||
menuItems: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user