From 2cb85aac761424a7ff483c4eaecd6ccebddf566d Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 4 Jan 2021 19:23:47 +0100 Subject: [PATCH] Only show edit icon when admin is true. --- frontend/pages/PostPage.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/pages/PostPage.vue b/frontend/pages/PostPage.vue index cc2f600..9aea921 100644 --- a/frontend/pages/PostPage.vue +++ b/frontend/pages/PostPage.vue @@ -3,7 +3,7 @@

{{ post.title }}

- ✏️ + ✏️

created {{ humanReadableDate(post.created) }},

@@ -26,6 +26,7 @@ import { humanReadableDate } from "@/utils"; export default { data() { return { + admin: false, markdown: undefined, id: this.$route.params.id, post: undefined,