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

FEAT #11269 TIME 0:10 fix order field list

parent ce3e98af
No related branches found
No related tags found
No related merge requests found
<div *ngIf="availableCustomFields !== undefined" class="content" cdkDropList id="customFieldsList"
[cdkDropListConnectedTo]="['indexingModelsCustomFieldsList_mail','indexingModelsCustomFieldsList_contact','indexingModelsCustomFieldsList_process','indexingModelsCustomFieldsList_classement']"
[cdkDropListData]="availableCustomFields" (cdkDropListDropped)="drop($event)">
<div class="customFieldRow" *ngFor="let field of availableCustomFields" cdkDrag [cdkDragData]="field">
<div class="customFieldRow" *ngFor="let field of availableCustomFields | sortBy: 'label'" cdkDrag [cdkDragData]="field">
<div class="customFieldDrag">
<i color="primary" class="fas fa-arrows-alt fa-2x" cdkDragHandle></i>
</div>
......@@ -71,7 +71,7 @@
<div *ngIf="availableFields !== undefined" class="content" cdkDropList id="fieldsList"
[cdkDropListConnectedTo]="['indexingModelsCustomFieldsList_mail','indexingModelsCustomFieldsList_contact','indexingModelsCustomFieldsList_process','indexingModelsCustomFieldsList_classement']"
[cdkDropListData]="availableFields" (cdkDropListDropped)="drop($event)">
<div class="customFieldRow" *ngFor="let field of availableFields" cdkDrag [cdkDragData]="field">
<div class="customFieldRow" *ngFor="let field of availableFields | sortBy: 'label'" cdkDrag [cdkDragData]="field">
<div class="customFieldDrag" cdkDragHandle>
<i color="primary" class="fas fa-arrows-alt fa-2x"></i>
</div>
......
......@@ -122,8 +122,6 @@ export class IndexingFormComponent implements OnInit {
identifier: 'senders',
label: this.lang.getSenders,
type: 'autocomplete',
system: true,
mandatory: true,
default_value : '',
values: ['/rest/autocomplete/contacts']
},
......@@ -131,8 +129,6 @@ export class IndexingFormComponent implements OnInit {
identifier: 'destination',
label: this.lang.destination,
type: 'select',
system: true,
mandatory: true,
default_value : '',
values: []
},
......@@ -140,8 +136,6 @@ export class IndexingFormComponent implements OnInit {
identifier: 'folder',
label: this.lang.folder,
type: 'autocomplete',
system: true,
mandatory: true,
default_value : '',
values: ['/rest/autocomplete/folders', '/rest/folders']
},
......@@ -150,8 +144,6 @@ export class IndexingFormComponent implements OnInit {
label: this.lang.docDate,
unit: 'mail',
type: 'date',
system: true,
mandatory: true,
default_value : '',
values: []
},
......@@ -160,8 +152,6 @@ export class IndexingFormComponent implements OnInit {
label: this.lang.arrivalDate,
unit: 'mail',
type: 'date',
system: true,
mandatory: true,
default_value : '',
values: []
},
......@@ -232,6 +222,7 @@ export class IndexingFormComponent implements OnInit {
event.container.data,
event.previousIndex,
event.currentIndex);
this.initElemForm();
}
}
......
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