From a80acb0797856825eefa827b0ce80394e6979ced Mon Sep 17 00:00:00 2001 From: Tim Zieger Date: Tue, 2 Jun 2020 12:16:30 +0200 Subject: [PATCH] Remove crate Butttons if logged out --- frontend/src/views/TimeRecords.vue | 5 +++-- frontend/src/views/TimeTrackAccounts.vue | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/TimeRecords.vue b/frontend/src/views/TimeRecords.vue index 002a5ee..bf3c9e2 100644 --- a/frontend/src/views/TimeRecords.vue +++ b/frontend/src/views/TimeRecords.vue @@ -24,7 +24,7 @@ - + mdi-plus @@ -48,7 +48,8 @@ export default { timeRecords: "", page: sessionStorage.getItem("page"), haveNextPage: "", - havePrevPage: "" + havePrevPage: "", + loggedIn: sessionStorage.getItem("loggedin") }; }, methods: { diff --git a/frontend/src/views/TimeTrackAccounts.vue b/frontend/src/views/TimeTrackAccounts.vue index 00435f8..567631d 100644 --- a/frontend/src/views/TimeTrackAccounts.vue +++ b/frontend/src/views/TimeTrackAccounts.vue @@ -10,7 +10,7 @@ - + mdi-plus @@ -30,7 +30,8 @@ export default { }, data() { return { - timeTrackAccounts: "" + timeTrackAccounts: "", + loggedIn: sessionStorage.getItem("loggedin") }; }, methods: {