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

FEAT #13441 TIME 0:10 reset file select model

parent 66a264ea
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@
<mat-form-field *ngIf="creationMode || template.file.name">
<mat-select id="template_style" [disabled]="!creationMode" name="template_style"
title="{{lang.defaultTemplate}}" placeholder="{{lang.chosenModel}}"
[(ngModel)]="selectedModelFile"
[(ngModel)]="selectedModelFile" (selectionChange)="changeModel($event)"
[required]="template.target!='acknowledgementReceipt'">
<mat-optgroup label="{{lang.loadedFile}} :">
<mat-option class="selectFile" (click)="uploadSignFileOffice.click()"
......@@ -280,4 +280,4 @@
</div>
</mat-list>
</mat-sidenav>
</mat-sidenav-container>
\ No newline at end of file
</mat-sidenav-container>
......@@ -625,6 +625,22 @@ export class TemplateAdministrationComponent implements OnInit, OnDestroy {
this.template.type = ev.value;
}
changeModel() {
this.template.file = {
name: '',
type: '',
content: ''
};
this.template.file = {
electronic: {
name: '',
type: '',
content: ''
}
};
}
loadTab(event: any) {
if (event.index === 0) {
this.initMce('textarea#templateOfficeHtml');
......
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