Remove crate Butttons if logged out
This commit is contained in:
parent
b379a750dc
commit
a80acb0797
@ -24,7 +24,7 @@
|
|||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="6"></v-col>
|
<v-col cols="6"></v-col>
|
||||||
<v-col cols="1">
|
<v-col cols="1">
|
||||||
<v-btn fab color="primary" @click="createTimeRecord()">
|
<v-btn v-if="loggedIn == 'true'" fab color="primary" @click="createTimeRecord()">
|
||||||
<v-icon>mdi-plus</v-icon>
|
<v-icon>mdi-plus</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -48,7 +48,8 @@ export default {
|
|||||||
timeRecords: "",
|
timeRecords: "",
|
||||||
page: sessionStorage.getItem("page"),
|
page: sessionStorage.getItem("page"),
|
||||||
haveNextPage: "",
|
haveNextPage: "",
|
||||||
havePrevPage: ""
|
havePrevPage: "",
|
||||||
|
loggedIn: sessionStorage.getItem("loggedin")
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="6"></v-col>
|
<v-col cols="6"></v-col>
|
||||||
<v-col cols="1">
|
<v-col cols="1">
|
||||||
<v-btn fab color="primary" @click="createTimeTrackAccount()">
|
<v-btn v-if="loggedIn == 'true'" fab color="primary" @click="createTimeTrackAccount()">
|
||||||
<v-icon>mdi-plus</v-icon>
|
<v-icon>mdi-plus</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -30,7 +30,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timeTrackAccounts: ""
|
timeTrackAccounts: "",
|
||||||
|
loggedIn: sessionStorage.getItem("loggedin")
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user