Fix oauth provider template (#1916)

This commit is contained in:
Rémy Grünblatt 2020-03-20 11:31:35 +01:00 committed by GitHub
parent dda0838a12
commit bf063d4df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,6 @@
const tpl_provider = (o) => html`
import { html } from "lit-html";
const tpl_provider = (o, provider) => html`
<p class="oauth-provider">
<a @click=${o.oauthLogin} class="oauth-login" data-id="${provider.id}">
<i class="fa ${provider.class}"></i>${provider.login_text}
@ -8,6 +10,6 @@ const tpl_provider = (o) => html`
export default (o) => html`
<fieldset class="oauth-providers">
${ o.providers.map(provider => tpl_provider(o)) }
${ o.providers.map(provider => tpl_provider(o, provider)) }
</fieldset>
`;
`;