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