Fix oauth provider template (#1916)
This commit is contained in:
parent
dda0838a12
commit
bf063d4df7
@ -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>
|
||||
`;
|
||||
`;
|
Loading…
Reference in New Issue
Block a user