Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
88d13fab
Commit
88d13fab
authored
Feb 21, 2023
by
vietanh-0511
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update login/signup modal
parent
fa869a70
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
LoginModal.vue
components/LoginModal.vue
+4
-2
RegisterModal.vue
components/RegisterModal.vue
+5
-2
Header.vue
components/user/Header.vue
+13
-3
No files found.
components/LoginModal.vue
View file @
88d13fab
<
template
>
<v-row
v-if=
"dialog"
justify=
"center"
>
<v-dialog
v-model=
"dialog"
persistent
width=
"450px"
@
click:outside=
"closeDialog"
>
<v-card-title
class=
"justify-center"
>
<p
class=
"font-weight-black"
style=
"font-size: 35px"
>
...
...
@@ -115,6 +114,9 @@ export default {
})
this
.
$router
.
push
(
'
/login
'
)
}
},
closeDialog
()
{
this
.
$props
.
status
=
false
}
}
}
...
...
components/RegisterModal.vue
View file @
88d13fab
<
template
>
<v-row
v-if=
"dialog"
justify=
"center"
>
<v-row
justify=
"center"
>
<v-dialog
v-model=
"dialog"
persistent
width=
"450px"
@
click:outside=
"closeDialog"
>
<v-card-title
class=
"justify-center"
>
<p
class=
"font-weight-black"
style=
"font-size: 35px"
>
...
...
@@ -151,6 +151,9 @@ export default {
duration
:
2000
})
}
},
closeDialog
()
{
this
.
$props
.
status
=
false
}
}
}
...
...
components/user/Header.vue
View file @
88d13fab
...
...
@@ -103,7 +103,7 @@
plain
v-bind=
"attrs"
v-on=
"on"
@
click=
"
activeLogin=true
"
@
click=
"
openDialogLogin
"
>
<v-icon>
mdi-account-outline
</v-icon>
<span>
login
</span>
...
...
@@ -113,7 +113,7 @@
plain
v-bind=
"attrs"
v-on=
"on"
@
click=
"
activeRegister=true
"
@
click=
"
openDialogSignUp
"
>
<span>
Signup
</span>
</v-btn>
...
...
@@ -157,7 +157,7 @@
</v-col>
<v-col
cols=
"12"
md
-4
md
=
"4"
class=
"d-flex"
>
<v-btn
...
...
@@ -264,6 +264,16 @@ export default {
activeLogin
:
false
,
activeRegister
:
false
}
},
methods
:
{
openDialogLogin
()
{
this
.
activeLogin
=
false
this
.
activeLogin
=
true
},
openDialogSignUp
()
{
this
.
activeLogin
=
false
this
.
activeLogin
=
true
}
}
}
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment