Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToDo-App Jan Schnaidt and Abdullah Kiran
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
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
Abdullah Kiran
ToDo-App Jan Schnaidt and Abdullah Kiran
Commits
3f2727e7
Commit
3f2727e7
authored
7 months ago
by
abdu
Browse files
Options
Downloads
Patches
Plain Diff
fix sign-up input fields "disabled" attribute not working properly, update some texts
parent
659e21e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/components/LoginPage.vue
+10
-7
10 additions, 7 deletions
frontend/src/components/LoginPage.vue
frontend/src/components/MainPage.vue
+6
-6
6 additions, 6 deletions
frontend/src/components/MainPage.vue
with
16 additions
and
13 deletions
frontend/src/components/LoginPage.vue
+
10
−
7
View file @
3f2727e7
...
...
@@ -24,12 +24,15 @@ export default {
return
this
.
user
.
userName
===
''
||
this
.
user
.
password
===
''
},
checkPasswordSame
(){
console
.
log
(
"
pw length:
"
+
this
.
repeatedPassword
.
length
+
"
\n
not same?
"
+
(
this
.
repeatedPassword
!==
this
.
user
.
password
))
if
(
this
.
repeatedPassword
.
length
>
1
&&
this
.
repeatedPassword
!==
this
.
user
.
password
){
return
true
let
pw
=
this
.
user
.
password
let
pw_repeated
=
this
.
repeatedPassword
if
(
pw
.
length
>
0
||
pw_repeated
>
0
){
return
this
.
user
.
password
.
length
===
this
.
repeatedPassword
.
length
}
return
false
return
null
}
},
methods
:
{
...
...
@@ -104,9 +107,9 @@ export default {
<!-- sign-up modal -->
<b-modal
class=
"signup-modal"
:ok-disabled=
"checkEmptyFieldsSignup"
@
ok=
"signUp"
hide-header
id=
"signup-modal"
>
<b-input
v-model=
"user.userName"
class=
"mb-4 mt-4"
id=
"signup-username"
type=
"text"
placeholder=
"enter username"
></b-input>
<b-input
v-model=
"user.password"
class=
"mb-4"
id=
"signup-password"
type=
"password"
placeholder=
"enter password"
></b-input>
<b-input
:state=
"checkPasswordSame"
v-model=
"repeatedPassword"
class=
"mb-4"
id=
"signup-repeat-password"
type=
"password"
placeholder=
"repeat password"
></b-input>
<b-input
required
v-model=
"user.userName"
class=
"mb-4 mt-4"
id=
"signup-username"
type=
"text"
placeholder=
"enter username"
></b-input>
<b-input
required
v-model=
"user.password"
class=
"mb-4"
id=
"signup-password"
type=
"password"
placeholder=
"enter password"
></b-input>
<b-input
required
:state=
"checkPasswordSame"
v-model=
"repeatedPassword"
class=
"mb-4"
id=
"signup-repeat-password"
type=
"password"
placeholder=
"repeat password"
></b-input>
</b-modal>
<!-- sign-in modal -->
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/MainPage.vue
+
6
−
6
View file @
3f2727e7
...
...
@@ -160,7 +160,7 @@ export default {
<b-row>
<b-col>
<b-button
class=
"mb-4"
variant=
"primary"
@
click=
"showAddModal = true"
>
Hinzufügen
Add new ToDo
</b-button>
</b-col>
<b-col>
...
...
@@ -217,12 +217,12 @@ export default {
<p>
{{
this
.
todoIdForDeleteModal
}}
</p>
</b-modal>
<b-modal
v-model=
"showAddModal"
title=
"
Neuen Namen hinzufügen
"
@
ok=
"addTodo"
hide-header
id=
"showAddModal"
>
<b-form-group
label=
"Tit
e
l"
>
<b-form-input
v-model=
"todo.title"
placeholder=
"
Name eingeben
"
></b-form-input>
<b-modal
v-model=
"showAddModal"
title=
"
add title
"
@
ok=
"addTodo"
hide-header
id=
"showAddModal"
>
<b-form-group
label=
"Titl
e
"
>
<b-form-input
required
v-model=
"todo.title"
placeholder=
"
todo title
"
></b-form-input>
</b-form-group>
<b-form-group
label=
"
B
esc
hreibung
"
>
<b-form-input
v-model=
"todo.description"
placeholder=
"
Beschreibung eingebe
n"
></b-form-input>
<b-form-group
label=
"
D
esc
ription
"
>
<b-form-input
v-model=
"todo.description"
placeholder=
"
todo descriptio
n"
></b-form-input>
</b-form-group>
</b-modal>
</b-card-body>
...
...
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