Fix button label rendering by using native HTML buttons
- Replace DButton components with native HTML button elements
- Remove DButton import (no longer needed)
- Use {{on click}} modifier for button actions
- Button text now displays correctly from settings
- Fixes [hu.Belépés] display issue
This commit is contained in:
parent
4176b14594
commit
1e7ad515a9
1 changed files with 14 additions and 11 deletions
|
|
@ -7,7 +7,6 @@ import { eq, and, not } from "truth-helpers";
|
|||
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
||||
import willDestroy from "@ember/render-modifiers/modifiers/will-destroy";
|
||||
import SearchMenu from "discourse/components/search-menu";
|
||||
import DButton from "discourse/components/d-button";
|
||||
import icon from "discourse-common/helpers/d-icon";
|
||||
|
||||
export default class WelcomeBanner extends Component {
|
||||
|
|
@ -90,16 +89,20 @@ export default class WelcomeBanner extends Component {
|
|||
</div>
|
||||
{{#if this.isAnonymous}}
|
||||
<div class="hero-buttons">
|
||||
<DButton
|
||||
@action={{this.goToLogin}}
|
||||
@label={{settings.login_button_text}}
|
||||
class="btn-primary hero-login-btn"
|
||||
/>
|
||||
<DButton
|
||||
@action={{this.goToSignup}}
|
||||
@label={{settings.register_button_text}}
|
||||
class="btn-default hero-register-btn"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary hero-login-btn"
|
||||
{{on "click" this.goToLogin}}
|
||||
>
|
||||
{{settings.login_button_text}}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-default hero-register-btn"
|
||||
{{on "click" this.goToSignup}}
|
||||
>
|
||||
{{settings.register_button_text}}
|
||||
</button>
|
||||
</div>
|
||||
{{else}}
|
||||
{{#if (and settings.enable_hero_search (not this.isMobile))}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue