mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Fix i18n bug for PDF viewer
This commit is contained in:
parent
29bc2677a8
commit
30aa8aadb6
1 changed files with 4 additions and 2 deletions
|
@ -81,6 +81,8 @@ export default Component.extend(Modals, Notifier, {
|
|||
let uploadId = this.get('uploadId');
|
||||
|
||||
// Handle upload clicks on button and anything inside that button.
|
||||
let uploadSuccess = this.i18n.localize('uploaded');
|
||||
|
||||
let sel = ['#' + uploadId, '#' + uploadId + ' > div'];
|
||||
for (var i=0; i < 2; i++) {
|
||||
let dzone = new Dropzone(sel[i], {
|
||||
|
@ -101,8 +103,8 @@ export default Component.extend(Modals, Notifier, {
|
|||
this.on("success", function (/*file, response*/ ) {
|
||||
});
|
||||
|
||||
this.on("queuecomplete", function () {
|
||||
self.notifySuccess(this.i18n.localize('uploaded'));
|
||||
this.on("queuecomplete", () => {
|
||||
self.notifySuccess(uploadSuccess);
|
||||
self.get('onAttachmentUpload')();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue