Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt2106_2024_03_frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scrum_Team_3
idatt2106_2024_03_frontend
Commits
2d60527d
Commit
2d60527d
authored
1 year ago
by
Torbjørn Antonsen
Browse files
Options
Downloads
Patches
Plain Diff
removed unnecessary fields in json object sent to backend and added monthlySavings field
parent
507e0ba0
No related branches found
No related tags found
1 merge request
!30
changes to register page
Pipeline
#278218
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/RegisterPageView.vue
+5
-5
5 additions, 5 deletions
src/views/RegisterPageView.vue
with
5 additions
and
5 deletions
src/views/RegisterPageView.vue
+
5
−
5
View file @
2d60527d
...
...
@@ -16,6 +16,7 @@ const questions = ["Hva er fødselsdatoen din?",
"
Hva er ditt etternavn?
"
,
"
Hvor stor intekt har du hver måned?
"
,
"
Hvor mye har du i faste utgifter hver måned?
"
,
"
Hvor mye har du lyst stil å spare hver måned?
"
,
"
Velg din brukskonto
"
,
"
Velg din sparekonto
"
,
]
...
...
@@ -34,7 +35,7 @@ const accounts = ref(<Account[]>[])
let
index
=
0
;
let
currentQuestion
=
ref
(
questions
[
index
])
const
questionType
=
[
"
date
"
,
"
text
"
,
"
text
"
,
"
number
"
,
"
number
"
,
"
selection
"
,
"
selection
"
]
const
questionType
=
[
"
date
"
,
"
text
"
,
"
text
"
,
"
number
"
,
"
number
"
,
"
number
"
,
"
selection
"
,
"
selection
"
]
let
currentQuestionType
=
ref
(
questionType
[
index
])
const
answer
=
ref
(
FirstTimeAnswersStore
().
userResponses
[
index
]);
...
...
@@ -106,15 +107,14 @@ const nextButtonText = ref("Neste")
function
convertToJsonObject
(
responses
:
any
[]):
Record
<
string
,
any
>
{
return
{
username
:
useTokenStore
().
getUsername
,
birthDate
:
responses
[
0
],
firstName
:
responses
[
1
],
lastName
:
responses
[
2
],
monthlyIncome
:
responses
[
3
],
monthlyFixedExpenses
:
responses
[
4
],
currentAccount
:
responses
[
5
],
savings
Account
:
responses
[
6
],
isConnectedToBank
:
useTokenStore
().
getUserRole
monthlySavings
:
responses
[
5
],
current
Account
:
responses
[
6
],
savingsAccount
:
responses
[
7
],
};
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment