|
@@ -3,11 +3,11 @@
|
|
<header
|
|
<header
|
|
@click.prevent="openModalCard"
|
|
@click.prevent="openModalCard"
|
|
>
|
|
>
|
|
- <h1 v-if="isloggedin">{{ item.title }}</h1>
|
|
|
|
|
|
+ <h1 v-if="hasDBAccess">{{ item.title }}</h1>
|
|
<h4>{{ item.short_description }}</h4>
|
|
<h4>{{ item.short_description }}</h4>
|
|
- <span v-if="isloggedin" class="ref">{{ item.reference }}</span>
|
|
|
|
|
|
+ <span v-if="hasDBAccess" class="ref">{{ item.reference }}</span>
|
|
</header>
|
|
</header>
|
|
- <nav class="tools" v-if="isloggedin">
|
|
|
|
|
|
+ <nav class="tools" v-if="hasDBAccess">
|
|
<section class="tool flags">
|
|
<section class="tool flags">
|
|
<span class="btn mdi mdi-folder-outline"/>
|
|
<span class="btn mdi mdi-folder-outline"/>
|
|
<div class="tool-content">
|
|
<div class="tool-content">
|
|
@@ -117,7 +117,8 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
...mapState({
|
|
...mapState({
|
|
flagcolls: state => state.User.flagcolls,
|
|
flagcolls: state => state.User.flagcolls,
|
|
- isloggedin: state => state.User.isloggedin
|
|
|
|
|
|
+ isloggedin: state => state.User.isloggedin,
|
|
|
|
+ hasDBAccess: state => state.User.hasDBAccess
|
|
}),
|
|
}),
|
|
collsLength() {
|
|
collsLength() {
|
|
return Object.keys(this.flagcolls).length
|
|
return Object.keys(this.flagcolls).length
|
|
@@ -192,8 +193,8 @@ export default {
|
|
// this.lightbox_index = index
|
|
// this.lightbox_index = index
|
|
// },
|
|
// },
|
|
openModalCard (e) {
|
|
openModalCard (e) {
|
|
- console.log('openModalCard', this.isLoggedin)
|
|
|
|
- if (this.isloggedin) {
|
|
|
|
|
|
+ console.log('openModalCard', this.hasDBAccess)
|
|
|
|
+ if (this.hasDBAccess) {
|
|
this.$modal.show(
|
|
this.$modal.show(
|
|
ModalCard,
|
|
ModalCard,
|
|
{
|
|
{
|