FIX: use proper locale for user archive download alerts

This commit is contained in:
Arpit Jalan
2016-11-29 12:47:34 +05:30
parent b8dc58be90
commit 8a18c5be1f
4 changed files with 9 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ export default Ember.Controller.extend({
actions: {
exportUserArchive() {
bootbox.confirm(
I18n.t("user.download_archive_confirm"),
I18n.t("user.download_archive.confirm"),
I18n.t("no_value"),
I18n.t("yes_value"),
function(confirmed) {

View File

@@ -8,9 +8,9 @@ function exportEntityByType(type, entity, args) {
export function exportUserArchive() {
return exportEntityByType('user', 'user_archive').then(function() {
bootbox.alert(I18n.t("admin.export_csv.success"));
bootbox.alert(I18n.t("user.download_archive.success"));
}).catch(function() {
bootbox.alert(I18n.t("admin.export_csv.rate_limit_error"));
bootbox.alert(I18n.t("user.download_archive.rate_limit_error"));
});
}

View File

@@ -28,7 +28,7 @@
{{#if viewingSelf}}
<div class='user-archive'>
{{d-button action="exportUserArchive" label="user.download_archive" icon="download"}}
{{d-button action="exportUserArchive" label="user.download_archive.button_text" icon="download"}}
</div>
{{/if}}
{{/d-section}}