Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Variable rendering problem on Import recent history page #15997

Merged
merged 8 commits into from
Apr 14, 2020
2 changes: 1 addition & 1 deletion app/importer/client/admin/adminImportHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1>{{ statusMessage}}</h1>

<span style="font-weight: 600;">{{_ "Import_Type"}}:</span>
<span>{{ type}} [{{ importerKey}}]</span>
<span>{{translate type}} [{{ importerKey}}]</span>
ritwizsinha marked this conversation as resolved.
Show resolved Hide resolved
<br/>

<span style="font-weight: 600;">{{_ "Last_Updated"}}:</span>
Expand Down
4 changes: 4 additions & 0 deletions app/importer/client/admin/adminImportHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ Template.adminImportHistory.helpers({
const date = new Date(this.msg.ts);
return date.toLocaleString();
},
translate(type) {
ritwizsinha marked this conversation as resolved.
Show resolved Hide resolved
return t(type);
},

ritwizsinha marked this conversation as resolved.
Show resolved Hide resolved
});

Template.adminImportHistory.events({
Expand Down