From 7fcaf60804615f9ae1e4ffaaff2876b85592ec9b Mon Sep 17 00:00:00 2001
From: Patrizio Bekerle <patrizio.bekerle@tugraz.at>
Date: Thu, 17 Oct 2019 09:35:02 +0200
Subject: [PATCH] Fix some warnings and add styles.js

---
 packages/auth/src/vpu-auth.js | 7 ++++---
 packages/auth/vendor/common   | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/packages/auth/src/vpu-auth.js b/packages/auth/src/vpu-auth.js
index 1359a76a..5143093f 100644
--- a/packages/auth/src/vpu-auth.js
+++ b/packages/auth/src/vpu-auth.js
@@ -2,6 +2,7 @@ import {i18n} from './i18n.js';
 import {html, css, LitElement} from 'lit-element';
 import JSONLD from 'vpu-common/jsonld'
 import * as commonUtils from 'vpu-common/utils';
+import * as commonStyles from 'vpu-common/styles';
 import 'vpu-common/vpu-icon.js';
 
 /**
@@ -30,7 +31,7 @@ class VPUAuth extends LitElement {
         this.name = "";
         this.personId = "";
         this.loggedIn = false;
-        this.rememberLogin = false
+        this.rememberLogin = false;
         this.person = null;
 
         // Create the events
@@ -241,7 +242,7 @@ class VPUAuth extends LitElement {
     static get styles() {
         // language=css
         return css`
-            ${commonUtils.getThemeCSS()}
+            ${commonStyles.getThemeCSS()}
 
             .dropdown.is-active .dropdown-menu, .dropdown.is-hoverable:hover .dropdown-menu {
                 display: block;
@@ -323,7 +324,7 @@ class VPUAuth extends LitElement {
               </div>
               <div class="dropdown-menu" id="dropdown-menu2" role="menu">
                 <div class="dropdown-content">
-                  ${imageURL ? html`<img src="${imageURL}" width="40%" height="40%" class="dropdown-item">` : ''}
+                  ${imageURL ? html`<img alt="" src="${imageURL}" width="40%" height="40%" class="dropdown-item">` : ''}
                   <a href="#" @click="${(e) => {e.preventDefault(); this.dispatchProfileEvent();}}" class="dropdown-item">${i18n.t('profile')}</a>
                   <a href="#" @click="${this.logout}" class="dropdown-item">${i18n.t('logout')}</a>
                 </div>
diff --git a/packages/auth/vendor/common b/packages/auth/vendor/common
index e5002ced..3e995165 160000
--- a/packages/auth/vendor/common
+++ b/packages/auth/vendor/common
@@ -1 +1 @@
-Subproject commit e5002ced8cc5b5bba3b89e8e6c928d855635fb86
+Subproject commit 3e9951654309c18ae99c19cdc403f3e4336363b0
-- 
GitLab