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" >