Skip to content
Snippets Groups Projects
Verified Commit 9671502e authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #9514 select modele

parent ad8c5cce
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@
</div>
<div class="form-group" *ngIf="template.template_type=='OFFICE_HTML'">
<mat-tab-group (selectedTabChange)="initMce('textarea#templateOfficeHtml')">
<mat-tab-group (selectedTabChange)="loadTab($event);">
<mat-tab label="{{lang.electronicTemplate}}">
<div class="form-group" *ngIf="template.template_type=='OFFICE_HTML'">
<div class="col-sm-12">
......
......@@ -379,6 +379,16 @@ export class TemplateAdministrationComponent implements OnInit {
this.fileToImport();
this.template.uploadedFile = null;
}
loadTab (event:any) {
if (event.index === 0) {
this.initMce('textarea#templateOfficeHtml');
} else {
if (this.template.template_file_name == null && this.template.template_style == null) {
this.buttonFileName = this.lang.importFile;
}
}
}
}
@Component({
templateUrl: "template-administration-checkEntities-modal.component.html",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment