mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FIX: Incorrect titles in two components (#28865)
This commit is contained in:
@ -86,7 +86,7 @@ export default class AdminPostMenu extends Component {
|
|||||||
"post.controls.change_post_notice"
|
"post.controls.change_post_notice"
|
||||||
"post.controls.add_post_notice"
|
"post.controls.add_post_notice"
|
||||||
}}
|
}}
|
||||||
title="post.controls.unhide"
|
@title="post.controls.unhide"
|
||||||
class={{concatClass
|
class={{concatClass
|
||||||
"btn btn-transparent"
|
"btn btn-transparent"
|
||||||
(if @data.transformedPost.notice "change-notice" "add-notice")
|
(if @data.transformedPost.notice "change-notice" "add-notice")
|
||||||
@ -121,7 +121,7 @@ export default class AdminPostMenu extends Component {
|
|||||||
<DButton
|
<DButton
|
||||||
@label="post.controls.change_owner"
|
@label="post.controls.change_owner"
|
||||||
@icon="user"
|
@icon="user"
|
||||||
title="post.controls.lock_post_description"
|
@title="post.controls.lock_post_description"
|
||||||
class="btn btn-transparent change-owner"
|
class="btn btn-transparent change-owner"
|
||||||
@action={{fn this.topicAction "changePostOwner"}}
|
@action={{fn this.topicAction "changePostOwner"}}
|
||||||
/>
|
/>
|
||||||
@ -145,7 +145,7 @@ export default class AdminPostMenu extends Component {
|
|||||||
<DButton
|
<DButton
|
||||||
@label="post.controls.unlock_post"
|
@label="post.controls.unlock_post"
|
||||||
@icon="unlock"
|
@icon="unlock"
|
||||||
title="post.controls.unlock_post_description"
|
@title="post.controls.unlock_post_description"
|
||||||
class={{concatClass
|
class={{concatClass
|
||||||
"btn btn-transparent unlock-post"
|
"btn btn-transparent unlock-post"
|
||||||
(if @data.post.locked "btn-success")
|
(if @data.post.locked "btn-success")
|
||||||
@ -158,7 +158,7 @@ export default class AdminPostMenu extends Component {
|
|||||||
<DButton
|
<DButton
|
||||||
@label="post.controls.lock_post"
|
@label="post.controls.lock_post"
|
||||||
@icon="lock"
|
@icon="lock"
|
||||||
title="post.controls.lock_post_description"
|
@title="post.controls.lock_post_description"
|
||||||
class="btn btn-transparent lock-post"
|
class="btn btn-transparent lock-post"
|
||||||
@action={{fn this.topicAction "lockPost"}}
|
@action={{fn this.topicAction "lockPost"}}
|
||||||
/>
|
/>
|
||||||
|
@ -732,7 +732,7 @@ export default class PollComponent extends Component {
|
|||||||
{{#if this.showCastVotesButton}}
|
{{#if this.showCastVotesButton}}
|
||||||
<button
|
<button
|
||||||
class={{this.castVotesButtonClass}}
|
class={{this.castVotesButtonClass}}
|
||||||
title="poll.cast-votes.title"
|
title={{i18n "poll.cast-votes.title"}}
|
||||||
disabled={{this.castVotesDisabled}}
|
disabled={{this.castVotesDisabled}}
|
||||||
{{on "click" this.castVotes}}
|
{{on "click" this.castVotes}}
|
||||||
>
|
>
|
||||||
@ -744,7 +744,7 @@ export default class PollComponent extends Component {
|
|||||||
{{#if this.showHideResultsButton}}
|
{{#if this.showHideResultsButton}}
|
||||||
<button
|
<button
|
||||||
class="btn btn-default toggle-results"
|
class="btn btn-default toggle-results"
|
||||||
title="poll.hide-results.title"
|
title={{i18n "poll.hide-results.title"}}
|
||||||
{{on "click" this.toggleResults}}
|
{{on "click" this.toggleResults}}
|
||||||
>
|
>
|
||||||
{{icon "chevron-left"}}
|
{{icon "chevron-left"}}
|
||||||
@ -757,7 +757,7 @@ export default class PollComponent extends Component {
|
|||||||
{{#if this.showShowResultsButton}}
|
{{#if this.showShowResultsButton}}
|
||||||
<button
|
<button
|
||||||
class="btn btn-default toggle-results"
|
class="btn btn-default toggle-results"
|
||||||
title="poll.show-results.title"
|
title={{i18n "poll.show-results.title"}}
|
||||||
{{on "click" this.toggleResults}}
|
{{on "click" this.toggleResults}}
|
||||||
>
|
>
|
||||||
{{icon "chart-bar"}}
|
{{icon "chart-bar"}}
|
||||||
@ -770,7 +770,7 @@ export default class PollComponent extends Component {
|
|||||||
{{#if this.showRemoveVoteButton}}
|
{{#if this.showRemoveVoteButton}}
|
||||||
<button
|
<button
|
||||||
class="btn btn-default remove-vote"
|
class="btn btn-default remove-vote"
|
||||||
title="poll.remove-vote.title"
|
title={{i18n "poll.remove-vote.title"}}
|
||||||
{{on "click" this.removeVote}}
|
{{on "click" this.removeVote}}
|
||||||
>
|
>
|
||||||
{{icon "undo"}}
|
{{icon "undo"}}
|
||||||
|
Reference in New Issue
Block a user