3636 </div >
3737 <hr class =" border-gray-100" >
3838 <p class =" mx-auto font-light text-center text-gray-500 max-w-500px text-16px leading-24px" >
39- {{ t('settingsPage.footer.text') }}
39+ {{ footerText }}
4040 </p >
4141 <Button
4242 class =" mx-auto group"
4343 variant =" outline"
4444 :prefix-icon =" SettingsIcon"
4545 prefix-icon-class =" icon-dark-gray-500 icon-light-gray-50 group-hocus:icon-dark-indigo-400 group-hocus:icon-light-indigo-50"
46- @click = " reconfigure "
46+ :href = " t('settingsPage.footer.buttonLink') "
4747 >
4848 {{ t('settingsPage.footer.button') }}
4949 </Button >
5050 </div >
5151</template >
5252
5353<script lang="ts" setup>
54+
55+ import { computed } from ' vue'
5456import { useI18n } from ' @cy/i18n'
55- import { gql , useMutation } from ' @urql/vue'
57+ import { gql } from ' @urql/vue'
5658import Button from ' @cy/components/Button.vue'
5759import ExternalEditorSettings from ' ./device/ExternalEditorSettings.vue'
5860import ProxySettings from ' ./device/ProxySettings.vue'
@@ -61,19 +63,19 @@ import ProjectSettings from './project/ProjectSettings.vue'
6163import CloudSettings from ' ../settings/project/CloudSettings.vue'
6264import TestingPreferences from ' ./device/TestingPreferences.vue'
6365import type { SettingsContainerFragment } from ' ../generated/graphql'
64- import { SettingsContainer_ReconfigureProjectDocument } from ' ../generated/graphql'
6566import IconLaptop from ' ~icons/cy/laptop_x24.svg'
6667import IconOdometer from ' ~icons/cy/object-odometer_x24.svg'
6768import IconFolder from ' ~icons/cy/folder-outline_x24.svg'
6869import SettingsIcon from ' ~icons/cy/settings_x16.svg'
6970
7071const { t } = useI18n ()
7172
72- gql `
73- mutation SettingsContainer_ReconfigureProject {
74- reconfigureProject
75- }
76- `
73+ const footerText = computed (() => {
74+ return t (' settingsPage.footer.text' ,
75+ { testingType: props .gql .currentProject ?.currentTestingType === ' component'
76+ ? ' component'
77+ : ' E2E' })
78+ })
7779
7880gql `
7981fragment SettingsContainer on Query {
@@ -91,9 +93,4 @@ const props = defineProps<{
9193 gql: SettingsContainerFragment
9294}>()
9395
94- const openElectron = useMutation (SettingsContainer_ReconfigureProjectDocument )
95-
96- function reconfigure () {
97- openElectron .executeMutation ({})
98- }
9996 </script >
0 commit comments