@@ -65,6 +91,9 @@
logout() {
auth.logout()
},
+ gravatar() {
+ return 'https://www.gravatar.com/avatar/' + this.user.infos.avatar + '?s=50'
+ },
loadNamespaces() {
this.loading = true
this.namespaces = []
@@ -107,7 +136,7 @@
}
-
diff --git a/src/main.js b/src/main.js
index 6e582134..5764695e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -11,6 +11,15 @@ Vue.config.productionTip = false
import Notifications from 'vue-notification'
Vue.use(Notifications)
+// Icons
+import { library } from '@fortawesome/fontawesome-svg-core'
+import { faSignOutAlt } from '@fortawesome/free-solid-svg-icons'
+import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
+
+library.add(faSignOutAlt)
+
+Vue.component('icon', FontAwesomeIcon)
+
// Check the user's auth status when the app starts
auth.checkAuth()