Merge branch '126-remove-create-buttons-if-logged-out' into 'master'

Resolve "Remove create buttons if logged out"

Closes #126

See merge request marcel.schwarz/2020ss-qbc-geofence-timetracking!97
This commit is contained in:
Tim Zieger 2020-06-02 10:26:23 +00:00
commit b0759a64b7
2 changed files with 6 additions and 4 deletions

View File

@ -24,7 +24,7 @@
<v-row>
<v-col cols="6"></v-col>
<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-btn>
</v-col>
@ -48,7 +48,8 @@ export default {
timeRecords: "",
page: sessionStorage.getItem("page"),
haveNextPage: "",
havePrevPage: ""
havePrevPage: "",
loggedIn: sessionStorage.getItem("loggedin")
};
},
methods: {

View File

@ -10,7 +10,7 @@
<v-row>
<v-col cols="6"></v-col>
<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-btn>
</v-col>
@ -30,7 +30,8 @@ export default {
},
data() {
return {
timeTrackAccounts: ""
timeTrackAccounts: "",
loggedIn: sessionStorage.getItem("loggedin")
};
},
methods: {