From 91d0692fd8b3e4eb4675ae8944aca08a65d52f20 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 21 Jul 2021 23:09:04 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 5 ++++- ayanova/src/App.vue | 40 +++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 8892080b..c5ff687c 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -463,6 +463,8 @@ CASES TODO: bugbug: data tables are showing the translation key, not the translation in the top of the list, however the page title is correctly translated wtf? + AdministrationGlobalSettings showing instead of translation? Is this valid + 3721 1: make labor rate mandatory on workorderitemlabor record and import v7 with some kind of dummy rate if not filled in there um...be sure about this, mandatory stuff kind of sucks, what's up in that case? @@ -1244,5 +1246,6 @@ BUILD 116 seeds the default loan item list to show the shadow units this is all to more easily illustrate how to use this feature for evaluators - +- Application title bar fixed regression bug where it was not showing translation for main data table forms but was showing translation key instead + it should show the data table list name when it's a main data table list and if it's an individual record opened then it should show the record name or closest equivalent (serial for wo etc) diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index 99d97025..d24ec8f2 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -145,11 +145,9 @@ > {{ appBar.icon }} - {{ appBar.title }} + {{ + titleDisplay + }} @@ -383,28 +381,28 @@ export default { }, helpUrl() { return this.$store.state.helpUrl; + }, + titleDisplay() { + if (this.appBar.title == null) { + return null; + } + if (this.appBar.title.includes(":")) { + const t = this.appBar.title.split(":"); + return t[1] + " " + this.$ay.t(t[0]); + } + if (this.appBar.isMain) { + //if ismain then it's a translation key + return this.$ay.t(this.appBar.title); + } else { + //if not ismain then it's a record name + return this.appBar.title; + } } }, props: { source: { type: String, default: null } }, methods: { - titleDisplay() { - //Allow for extra info in title - if (this.appBar.title == null) { - return null; - } - - if (this.appBar.title.includes(":")) { - const t = this.appBar.title.split(":"); - // if (this.$vuetify.breakpoint.smAndUp) { - // return this.$ay.t(t[0]) + " " + t[1]; - // } else { - return t[1] + " " + this.$ay.t(t[0]); - //} - } - return this.$ay.t(this.appBar.title); - }, afterLeave() { this.$root.$emit("triggerScroll"); },