From 2d12c56b90755d4756656dd84fd0bbb24bc570b4 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Thu, 1 Mar 2018 23:45:46 +0100
Subject: [PATCH] Username component

---
 front/src/components/common/Username.vue | 8 ++++++++
 front/src/components/globals.js          | 4 ++++
 2 files changed, 12 insertions(+)
 create mode 100644 front/src/components/common/Username.vue

diff --git a/front/src/components/common/Username.vue b/front/src/components/common/Username.vue
new file mode 100644
index 00000000..17fb3492
--- /dev/null
+++ b/front/src/components/common/Username.vue
@@ -0,0 +1,8 @@
+<template>
+  <span>{{ username }}</span>
+</template>
+<script>
+export default {
+  props: ['username']
+}
+</script>
diff --git a/front/src/components/globals.js b/front/src/components/globals.js
index 40315bc4..b1d7d610 100644
--- a/front/src/components/globals.js
+++ b/front/src/components/globals.js
@@ -4,4 +4,8 @@ import HumanDate from '@/components/common/HumanDate'
 
 Vue.component('human-date', HumanDate)
 
+import Username from '@/components/common/Username'
+
+Vue.component('username', Username)
+
 export default {}
-- 
GitLab