(lint)
This commit is contained in:
parent
366339fc9a
commit
25630bba41
4 changed files with 11 additions and 5 deletions
|
@ -11,6 +11,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "Header"
|
name: 'Header'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -5,7 +5,13 @@
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-snackbar v-model="snackbar.visible" :timeout="6000" :color="snackbar.color" absolute top>
|
<v-snackbar
|
||||||
|
v-model="snackbar.visible"
|
||||||
|
:timeout="6000"
|
||||||
|
:color="snackbar.color"
|
||||||
|
absolute
|
||||||
|
top
|
||||||
|
>
|
||||||
{{ snackbar.text }}
|
{{ snackbar.text }}
|
||||||
<v-btn @click.native="snackbar.visible = false" fab flat icon>
|
<v-btn @click.native="snackbar.visible = false" fab flat icon>
|
||||||
<v-icon>close</v-icon>
|
<v-icon>close</v-icon>
|
||||||
|
|
|
@ -44,7 +44,7 @@ export default {
|
||||||
|
|
||||||
password: '',
|
password: '',
|
||||||
showPassword: false,
|
showPassword: false,
|
||||||
passwordRules: [v => !!v || 'Please enter password'],
|
passwordRules: [v => !!v || 'Please enter password']
|
||||||
}),
|
}),
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -60,7 +60,7 @@ export default {
|
||||||
if (response.data.success) {
|
if (response.data.success) {
|
||||||
let cookie_data = JSON.parse(response.data.message)
|
let cookie_data = JSON.parse(response.data.message)
|
||||||
Cookies.set('session', cookie_data.value, cookie_data.properties)
|
Cookies.set('session', cookie_data.value, cookie_data.properties)
|
||||||
this.$refs.main.showSnackbar("Login successful!", 'success')
|
this.$refs.main.showSnackbar('Login successful!', 'success')
|
||||||
this.$router.push('about')
|
this.$router.push('about')
|
||||||
} else {
|
} else {
|
||||||
this.$refs.main.showSnackbar(response.data.message, 'error')
|
this.$refs.main.showSnackbar(response.data.message, 'error')
|
||||||
|
|
|
@ -77,7 +77,7 @@ export default {
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log('register', response.data)
|
console.log('register', response.data)
|
||||||
if (response.data.success) {
|
if (response.data.success) {
|
||||||
this.$refs.main.showSnackbar("Registration successful!", 'success')
|
this.$refs.main.showSnackbar('Registration successful!', 'success')
|
||||||
} else {
|
} else {
|
||||||
this.$refs.main.showSnackbar(response.data.message, 'error')
|
this.$refs.main.showSnackbar(response.data.message, 'error')
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue