适配登入登出弹窗
This commit is contained in:
@@ -164,7 +164,7 @@ export class BaseForm extends LitElement {
|
||||
${this.currentUser?.spec.displayName || this.currentUser?.metadata.name}
|
||||
</span>
|
||||
<button
|
||||
@click=${this.handleLogout}
|
||||
onclick="open_logout_box()"
|
||||
type="button"
|
||||
class="form-logout text-xs text-text-3 hover:text-text-1 px-3 transition-all py-2 rounded-base border border-muted-3 opacity-100 hover:border-muted-4 hover:opacity-70 border-solid"
|
||||
tabindex="-1"
|
||||
@@ -224,7 +224,7 @@ export class BaseForm extends LitElement {
|
||||
placeholder=${msg('Website')}
|
||||
class="input"
|
||||
/>
|
||||
<a tabindex="-1" href=${this.loginUrl} rel="nofollow" class="form-login-link text-text-3 hover:text-text-1 text-xs transition-all select-none">${msg('(Or login)')}</a>
|
||||
<a tabindex="-1" href="javascript:void(0)" onclick="open_login_box()" rel="nofollow" class="form-login-link text-text-3 hover:text-text-1 text-xs transition-all select-none">${msg('(Or login)')}</a>
|
||||
</div>
|
||||
`
|
||||
)}
|
||||
@@ -235,7 +235,7 @@ export class BaseForm extends LitElement {
|
||||
!this.currentUser && !this.allowAnonymousComments,
|
||||
() => html`
|
||||
<button
|
||||
@click=${this.handleOpenLoginPage}
|
||||
onclick="open_login_box()"
|
||||
class="form-login text-xs text-text-3 hover:text-text-1 px-3 transition-all py-2 rounded-base border border-muted-3 opacity-100 hover:border-muted-4 hover:opacity-70 border-solid"
|
||||
type="button"
|
||||
tabindex="-1"
|
||||
|
||||
Reference in New Issue
Block a user