Skip to content
Snippets Groups Projects
Commit 5b79a663 authored by VIktorGrev's avatar VIktorGrev
Browse files

Merge branch 'main' of...

Merge branch 'main' of https://gitlab.stud.idi.ntnu.no/idatt2106-2024-07/frontend into feat/profile-and-settings-improvements
parents 642daa81 cd722816
No related branches found
No related tags found
1 merge request!106Feat/profile and settings improvements
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
:to="toBudget()" :to="toBudget()"
exact-active-class="active-nav" exact-active-class="active-nav"
@click="toggleDropdown"> @click="toggleDropdown">
<img src="@/assets/icons/budget.svg">Budjsett <img src="@/assets/icons/budget.svg">Budsjett
</router-link> </router-link>
</li> </li>
<li class="nav-item"> <li class="nav-item">
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<img src="@/assets/icons/feedback.svg">Tilbakemelding <img src="@/assets/icons/feedback.svg">Tilbakemelding
</router-link> </router-link>
</li> </li>
<li> <li v-if="useUserInfoStore().role === 'ADMIN'">
<router-link data-cy="admin" <router-link data-cy="admin"
class="dropdown-item dropdown-username-link" class="dropdown-item dropdown-username-link"
:to="toAdmin()" :to="toAdmin()"
......
...@@ -7,7 +7,7 @@ import { useRoute } from 'vue-router' ...@@ -7,7 +7,7 @@ import { useRoute } from 'vue-router'
const router = useRouter() const router = useRouter()
// The configuration steps with path and order value. // The configuration steps with path and order value.
const configurationSteps = {'/bank-account': 1,'/commitment': 2, '/experience': 3, '/suitable-challenges': 4, '/first-saving-goal': 5, '/finished-configuration': 6} const configurationSteps = {'/bank-account': 1,'/commitment': 2, '/suitable-challenges': 3, '/first-saving-goal': 4, '/finished-configuration': 5}
const length = Object.keys(configurationSteps).length const length = Object.keys(configurationSteps).length
let percentage = ref(1/length); let percentage = ref(1/length);
......
...@@ -5,7 +5,6 @@ import { ref } from 'vue' ...@@ -5,7 +5,6 @@ import { ref } from 'vue'
import BaseInput from '@/components/BaseComponents/Input/BaseInput.vue' import BaseInput from '@/components/BaseComponents/Input/BaseInput.vue'
import { useConfigurationStore } from '@/stores/ConfigurationStore' import { useConfigurationStore } from '@/stores/ConfigurationStore'
import { AccountControllerService } from '@/api' import { AccountControllerService } from '@/api'
import handleUnknownError from '@/components/Exceptions/unkownErrorHandler'
const router = useRouter(); const router = useRouter();
......
...@@ -31,7 +31,7 @@ const handleSubmit = () => { ...@@ -31,7 +31,7 @@ const handleSubmit = () => {
else if (mediumRef.value.checked) choice = 'SOME' else if (mediumRef.value.checked) choice = 'SOME'
else if (highRef.value.checked) choice = 'MUCH' else if (highRef.value.checked) choice = 'MUCH'
useConfigurationStore().setCommitment(choice) useConfigurationStore().setCommitment(choice)
router.push('/experience') router.push('/suitable-challenges')
} }
else { else {
errorMsg.value = 'Please select an option before continuing' errorMsg.value = 'Please select an option before continuing'
......
...@@ -12,7 +12,7 @@ export const useConfigurationStore = defineStore('ConfigurationStore', { ...@@ -12,7 +12,7 @@ export const useConfigurationStore = defineStore('ConfigurationStore', {
/** The user's commitment. */ /** The user's commitment. */
commitment: '', commitment: '',
/** The user's experience. */ /** The user's experience. */
experience: '', experience: 'NONE',
/** The challenges the user is facing. */ /** The challenges the user is facing. */
challenges: [] as Array<string>, challenges: [] as Array<string>,
}), }),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment