- Update Menu User Account: Login/SignUp
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import { Component } from 'vue-property-decorator'
|
||||
import { GlobalStore } from '@store'
|
||||
import { GlobalStore, UserStore } from '@store'
|
||||
|
||||
import { Logo } from '../../components/logo'
|
||||
|
||||
@@ -30,6 +30,10 @@ export default class Home extends Vue {
|
||||
GlobalStore.actions.prova()
|
||||
}
|
||||
|
||||
get isLogged(){
|
||||
return UserStore.state.isLogged
|
||||
}
|
||||
|
||||
|
||||
meta() {
|
||||
return {
|
||||
@@ -82,6 +86,10 @@ export default class Home extends Vue {
|
||||
|
||||
}
|
||||
|
||||
get isInCostruction () {
|
||||
return process.env.IN_CONSTRUCTION === '1'
|
||||
}
|
||||
|
||||
getPermission() {
|
||||
return Notification.permission
|
||||
}
|
||||
@@ -90,6 +98,14 @@ export default class Home extends Vue {
|
||||
return (!('serviceWorker' in navigator))
|
||||
}
|
||||
|
||||
PagLogin () {
|
||||
this.$router.replace('/signin')
|
||||
}
|
||||
|
||||
PagReg () {
|
||||
this.$router.replace('/signup')
|
||||
}
|
||||
|
||||
displayConfirmNotification() {
|
||||
let options = null
|
||||
if ('serviceWorker' in navigator) {
|
||||
|
||||
Reference in New Issue
Block a user