diff --git a/api/js/etemplate/et2_widget_file.ts b/api/js/etemplate/et2_widget_file.ts index ce2b77f86d..975ba47f63 100644 --- a/api/js/etemplate/et2_widget_file.ts +++ b/api/js/etemplate/et2_widget_file.ts @@ -182,6 +182,7 @@ export class et2_file extends et2_inputWidget this.span = jQuery(document.createElement("et2-button")) .addClass('et2_file_span') .attr("image", "attach") + .attr('label', this.options.label || '') .attr("noSubmit", true) .appendTo(this.node); @@ -767,6 +768,4 @@ export class et2_file extends et2_inputWidget } } } -et2_register_widget(et2_file, ["file"]); - - +et2_register_widget(et2_file, ["file"]); \ No newline at end of file