Fixed constant for terms and conditions created in folder for constant

This commit is contained in:
ogerly 2019-09-04 07:03:56 +02:00
parent 41767cc27e
commit c64ff67a55
7 changed files with 5 additions and 7 deletions

View File

@ -1,7 +1,6 @@
import { Given, When, Then } from "cypress-cucumber-preprocessor/steps"; import { Given, When, Then } from "cypress-cucumber-preprocessor/steps";
import helpers from "../../support/helpers"; import helpers from "../../support/helpers";
import slugify from "slug"; import slugify from "slug";
// import { VERSION } from '../../../webapp/pages/terms-and-conditions.vue';
/* global cy */ /* global cy */

View File

@ -87,7 +87,7 @@ import gql from 'graphql-tag'
import PasswordStrength from '../Password/Strength' import PasswordStrength from '../Password/Strength'
import { SweetalertIcon } from 'vue-sweetalert-icons' import { SweetalertIcon } from 'vue-sweetalert-icons'
import PasswordForm from '~/components/utils/PasswordFormHelper' import PasswordForm from '~/components/utils/PasswordFormHelper'
import { VERSION } from '~/pages/terms-and-conditions' import { VERSION } from '~/constants/terms-and-conditions-version.js'
/* TODO: hier muss die version rein */ /* TODO: hier muss die version rein */
export const SignupVerificationMutation = gql` export const SignupVerificationMutation = gql`

View File

@ -0,0 +1 @@
export const VERSION = '0.0.2'

View File

@ -75,7 +75,7 @@
<script> <script>
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch' import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
import { VERSION } from '~/pages/terms-and-conditions' import { VERSION } from '~/constants/terms-and-conditions-version.js'
export default { export default {
components: { components: {

View File

@ -26,7 +26,7 @@
<script> <script>
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { mapGetters, mapMutations } from 'vuex' import { mapGetters, mapMutations } from 'vuex'
import { VERSION } from '~/pages/terms-and-conditions' import { VERSION } from '~/constants/terms-and-conditions-version.js'
const mutation = gql` const mutation = gql`
mutation($id: ID!, $termsAndConditionsAgreedVersion: String) { mutation($id: ID!, $termsAndConditionsAgreedVersion: String) {
UpdateUser(id: $id, termsAndConditionsAgreedVersion: $termsAndConditionsAgreedVersion) { UpdateUser(id: $id, termsAndConditionsAgreedVersion: $termsAndConditionsAgreedVersion) {

View File

@ -22,8 +22,6 @@
</template> </template>
<script> <script>
export const VERSION = '0.0.2'
export default { export default {
layout: 'default', layout: 'default',
head() { head() {

View File

@ -1,5 +1,5 @@
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { VERSION } from '~/pages/terms-and-conditions' import { VERSION } from '~/constants/terms-and-conditions-version.js'
export const state = () => { export const state = () => {
return { return {