From 977b313fcf492f30a45ed5463f30a336ffc3330b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 4 Apr 2020 19:39:59 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 6 ------ ayanova/src/App.vue | 17 ++++++++++------ ayanova/src/api/errorhandler.js | 12 ++--------- ayanova/src/api/gzform.js | 4 ++-- .../src/components/custom-fields-control.vue | 20 +++++++++---------- ayanova/src/components/date-time-control.vue | 8 ++++---- ayanova/src/components/gz-data-table.vue | 10 +++++----- ayanova/src/components/gzconfirm.vue | 6 +++--- ayanova/src/components/gznotify.vue | 4 ++-- ayanova/src/main.js | 10 +++++----- ayanova/src/views/ay-data-list-view.vue | 4 ++-- ayanova/src/views/widget.vue | 3 --- 12 files changed, 46 insertions(+), 58 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 225e2453..ad9d8fa4 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -48,12 +48,6 @@ CURRENT TODOs =-=-=-=-=-=-= @@@@@@@@@@@ ROADMAP STAGE 2: -todo: global vue - - find all stuff defined in vue data objects as methods solely for the consumption of the template like translation (t()) and move to global vue object in main - - stuff not needed by templates should stay where it is in window - - Lodash might be an exception - - search and change this: if (window.$gz.errorHandler.devMode()) { if possible - - search change this: this.$root.$gz.translation.get("More") // if possible, also is it really needed to be on that root thing anyway now that I know how to do global todo: change all testing data-cy attributes to conditional see ay-customize for example - :data-cy="!!enableCypress ? item.key : false" diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index b3f1d270..3dd80a49 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -19,7 +19,7 @@ :prepend-icon="item.icon" :value="false" :key="item.key" - :data-cy="item.testid" + :data-cy="!!$ay.dev ? item.testid : false" > {{ @@ -50,7 +50,7 @@ @click:prepend="dlgtime = true" readonly :error="!!error" - :data-cy="'ttfpick:' + testId" + :data-cy="!!$ay.dev ? 'ttfpick:' + testId : false" > {{ diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 60a73c9c..18e6e954 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -19,17 +19,17 @@ item-value="id" :label="$ay.t('DataListView')" @input="listViewChanged" - data-cy="selectlistview" + :data-cy="!!$ay.dev ? 'selectlistview' : false" >
- fa-sync + fa-sync - fa-filter + fa-filter
@@ -61,7 +61,7 @@ :loading-text="$ay.t('Loading')" :no-data-text="$ay.t('NoData')" class="elevation-1" - data-cy="datatable-wide" + :data-cy="!!$ay.dev ? 'datatable-wide' : false" >