fix: ext added to file name

This commit is contained in:
Dmitry-Ilyushechkin
2025-09-11 18:00:39 +03:00
parent de9423bf08
commit 0e38d6ec2f
2 changed files with 2 additions and 1 deletions

View File

@ -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);
});
};

View File

@ -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,