mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
fix: ext added to file name
This commit is contained in:
@ -20,7 +20,7 @@ PreviewTemplateDialog.prototype.show = function(width) {
|
||||
|
||||
$el.find('.btn.btn--landing').on('click', () => {
|
||||
this.close();
|
||||
window.sdk.openTemplate(this.model.path, this.model.name);
|
||||
window.sdk.openTemplate(this.model.path, this.model.fullName);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -363,6 +363,7 @@
|
||||
const m = new FileTemplateModel({
|
||||
uid: id,
|
||||
name: info['name_form'],
|
||||
fullName: [info['name_form'], file_ext].join('.'),
|
||||
descr: info['template_desc'],
|
||||
preview: info.card_prewiew ? info.card_prewiew.data.attributes.url : undefined,
|
||||
path: info.file_oform ? info.file_oform.data[0].attributes.url : undefined,
|
||||
|
||||
Reference in New Issue
Block a user