Skip to content

A platform for community discussion. Free, open, simple.

FIX: Incorrect titles in two components (#28865)

Jarek Radosz18fca966c595
diff --git a/app/assets/javascripts/discourse/app/components/admin-post-menu.gjs b/app/assets/javascripts/discourse/app/components/admin-post-menu.gjs
index 34b51653dc9..29c8700a7e5 100644
--- a/app/assets/javascripts/discourse/app/components/admin-post-menu.gjs
+++ b/app/assets/javascripts/discourse/app/components/admin-post-menu.gjs
@@ -86,7 +86,7 @@ export default class AdminPostMenu extends Component {
"post.controls.change_post_notice"
"post.controls.add_post_notice"
}}
- title="post.controls.unhide"
+ @title="post.controls.unhide"
class={{concatClass
"btn btn-transparent"
(if @data.transformedPost.notice "change-notice" "add-notice")
@@ -121,7 +121,7 @@ export default class AdminPostMenu extends Component {
<DButton
@label="post.controls.change_owner"
@icon="user"
- title="post.controls.lock_post_description"
+ @title="post.controls.lock_post_description"
class="btn btn-transparent change-owner"
@action={{fn this.topicAction "changePostOwner"}}
/>
@@ -145,7 +145,7 @@ export default class AdminPostMenu extends Component {
<DButton
@label="post.controls.unlock_post"
@icon="unlock"
- title="post.controls.unlock_post_description"
+ @title="post.controls.unlock_post_description"
class={{concatClass
"btn btn-transparent unlock-post"
(if @data.post.locked "btn-success")
@@ -158,7 +158,7 @@ export default class AdminPostMenu extends Component {
<DButton
@label="post.controls.lock_post"
@icon="lock"
- title="post.controls.lock_post_description"
+ @title="post.controls.lock_post_description"
class="btn btn-transparent lock-post"
@action={{fn this.topicAction "lockPost"}}
/>
diff --git a/plugins/poll/assets/javascripts/discourse/components/poll.gjs b/plugins/poll/assets/javascripts/discourse/components/poll.gjs
index 31cae773f1c..a9e714e5a52 100644
--- a/plugins/poll/assets/javascripts/discourse/components/poll.gjs
+++ b/plugins/poll/assets/javascripts/discourse/components/poll.gjs
@@ -732,7 +732,7 @@ export default class PollComponent extends Component {
{{#if this.showCastVotesButton}}
<button
class={{this.castVotesButtonClass}}
- title="poll.cast-votes.title"
+ title={{i18n "poll.cast-votes.title"}}
disabled={{this.castVotesDisabled}}
{{on "click" this.castVotes}}
>
@@ -744,7 +744,7 @@ export default class PollComponent extends Component {
{{#if this.showHideResultsButton}}
<button
class="btn btn-default toggle-results"
- title="poll.hide-results.title"
+ title={{i18n "poll.hide-results.title"}}
{{on "click" this.toggleResults}}
>
{{icon "chevron-left"}}
@@ -757,7 +757,7 @@ export default class PollComponent extends Component {
{{#if this.showShowResultsButton}}
<button
class="btn btn-default toggle-results"
- title="poll.show-results.title"
+ title={{i18n "poll.show-results.title"}}
{{on "click" this.toggleResults}}
>
{{icon "chart-bar"}}
@@ -770,7 +770,7 @@ export default class PollComponent extends Component {
{{#if this.showRemoveVoteButton}}
<button
class="btn btn-default remove-vote"
- title="poll.remove-vote.title"
+ title={{i18n "poll.remove-vote.title"}}
{{on "click" this.removeVote}}
>
{{icon "undo"}}