main/view/vue/header.vue

38 lines
912 B
Vue

<template>
<div id='HEADER'>
<!-- Header Icon+Title -->
<div id='header-icon' @click='gstore.func.toggleMenuSize'>
<div class='header-title'>{{ gstore.header_title }}</div>
</div>
<!-- Header Info -->
<div id='header-info' v-show='gstore.info.active' :class='gstore.info.type'>{{ gstore.info.message }}</div>
<!-- Header Notif -->
<div id='header-notif'>
<div v-for='(notif, link) in gstore.notif' @click='show_notif(link)' :class='"hnotif " + notif.class' :data-count='notif.count'></div>
<div @click='show_login()' class='hnotif login'></div>
</div>
</div>
</template>
<script>
export default {
name: 'HEADER',
data(){ return { gstore: gstore.data }; },
methods: {
show_notif(uri){
this.gstore.func.nav(this.$router, uri);
},
show_login() {
this.gstore.signupform = false;
this.gstore.loginform = !this.gstore.loginform;
}
}
}
</script>