33 lines
726 B
Vue
33 lines
726 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 in gstore.notif' @click='show_notif(notif.link)' :class='"hnotif " + notif.class' :data-count='notif.count'></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);
|
|
}
|
|
}
|
|
}
|
|
</script> |