mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 14:32:01 +08:00
UX: Improve revert label in post history modal (#10038)
This commit is contained in:
parent
06e5fd5627
commit
ce37561e10
|
@ -60,6 +60,11 @@ export default Controller.extend(ModalFunctionality, {
|
|||
);
|
||||
},
|
||||
|
||||
@discourseComputed("previousVersion")
|
||||
revertToRevisionText(revision) {
|
||||
return I18n.t("post.revisions.controls.revert", { revision });
|
||||
},
|
||||
|
||||
refresh(postId, postVersion) {
|
||||
this.set("loading", true);
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if displayRevert}}
|
||||
{{d-button action=(action "revertToVersion") icon="undo" label="post.revisions.controls.revert" class="btn-danger" disabled=loading}}
|
||||
{{d-button action=(action "revertToVersion") icon="undo" translatedLabel=revertToRevisionText class="btn-danger" disabled=loading}}
|
||||
{{/if}}
|
||||
|
||||
{{#if displayHide}}
|
||||
|
|
|
@ -2745,7 +2745,7 @@ en:
|
|||
last: "Last revision"
|
||||
hide: "Hide revision"
|
||||
show: "Show revision"
|
||||
revert: "Revert to this revision"
|
||||
revert: "Revert to revision %{revision}"
|
||||
edit_wiki: "Edit Wiki"
|
||||
edit_post: "Edit Post"
|
||||
comparing_previous_to_current_out_of_total: "<strong>%{previous}</strong> %{icon} <strong>%{current}</strong> / %{total}"
|
||||
|
|
|
@ -2476,7 +2476,7 @@ pt_BR:
|
|||
last: "Última revisão"
|
||||
hide: "Esconder revisão"
|
||||
show: "Exibir revisão"
|
||||
revert: "Reverter para esta revisão"
|
||||
revert: "Reverter para a revisão %{revision}"
|
||||
edit_wiki: "Editar Wiki"
|
||||
edit_post: "Editar Postagem"
|
||||
comparing_previous_to_current_out_of_total: "<strong>%{previous}</strong> %{icon} <strong>%{current}</strong> / %{total}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user