mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Improve revert label in post history modal (#10038)
This commit is contained in:
committed by
GitHub
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}}
|
||||
|
||||
Reference in New Issue
Block a user