Commit 88d13fab authored by vietanh-0511's avatar vietanh-0511

update login/signup modal

parent fa869a70
<template> <template>
<v-row <v-row
v-if="dialog"
justify="center" justify="center"
> >
<v-dialog <v-dialog
v-model="dialog" v-model="dialog"
persistent
width="450px" width="450px"
@click:outside="closeDialog"
> >
<v-card-title class="justify-center"> <v-card-title class="justify-center">
<p class="font-weight-black" style="font-size: 35px"> <p class="font-weight-black" style="font-size: 35px">
...@@ -115,6 +114,9 @@ export default { ...@@ -115,6 +114,9 @@ export default {
}) })
this.$router.push('/login') this.$router.push('/login')
} }
},
closeDialog () {
this.$props.status = false
} }
} }
} }
......
<template> <template>
<v-row v-if="dialog" justify="center"> <v-row justify="center">
<v-dialog <v-dialog
v-model="dialog" v-model="dialog"
persistent
width="450px" width="450px"
@click:outside="closeDialog"
> >
<v-card-title class="justify-center"> <v-card-title class="justify-center">
<p class="font-weight-black" style="font-size: 35px"> <p class="font-weight-black" style="font-size: 35px">
...@@ -151,6 +151,9 @@ export default { ...@@ -151,6 +151,9 @@ export default {
duration: 2000 duration: 2000
}) })
} }
},
closeDialog () {
this.$props.status = false
} }
} }
} }
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
plain plain
v-bind="attrs" v-bind="attrs"
v-on="on" v-on="on"
@click="activeLogin=true" @click="openDialogLogin"
> >
<v-icon>mdi-account-outline</v-icon> <v-icon>mdi-account-outline</v-icon>
<span>login</span> <span>login</span>
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
plain plain
v-bind="attrs" v-bind="attrs"
v-on="on" v-on="on"
@click="activeRegister=true" @click="openDialogSignUp"
> >
<span>Signup</span> <span>Signup</span>
</v-btn> </v-btn>
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
</v-col> </v-col>
<v-col <v-col
cols="12" cols="12"
md-4 md="4"
class="d-flex" class="d-flex"
> >
<v-btn <v-btn
...@@ -264,6 +264,16 @@ export default { ...@@ -264,6 +264,16 @@ export default {
activeLogin: false, activeLogin: false,
activeRegister: false activeRegister: false
} }
},
methods: {
openDialogLogin () {
this.activeLogin = false
this.activeLogin = true
},
openDialogSignUp () {
this.activeLogin = false
this.activeLogin = true
}
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment