diff --git a/src/frontend/app/administration/indexingModel/indexing-model-administration.component.ts b/src/frontend/app/administration/indexingModel/indexing-model-administration.component.ts index 1a70cbac13c325de8b2648f9e695998e9a236467..408935517bb991c4cfd581c33d9cc1a3b61727dd 100644 --- a/src/frontend/app/administration/indexingModel/indexing-model-administration.component.ts +++ b/src/frontend/app/administration/indexingModel/indexing-model-administration.component.ts @@ -153,6 +153,7 @@ export class IndexingModelAdministrationComponent implements OnInit { tap((data: any) => { this.indexingForm.setModification(); this.setModification(); + this.router.navigate(['/administration/indexingModels']); this.notify.success(this.lang.indexingModelUpdated); }), finalize(() => this.loading = false), diff --git a/src/frontend/app/indexation/indexing-form/indexing-form.component.html b/src/frontend/app/indexation/indexing-form/indexing-form.component.html index a0d3a2b367236b2be94b3888367a0fef6a767a00..6cb03c23eb0a81a9ac6869747d867a56d9b76a08 100644 --- a/src/frontend/app/indexation/indexing-form/indexing-form.component.html +++ b/src/frontend/app/indexation/indexing-form/indexing-form.component.html @@ -17,6 +17,7 @@ [cdkDragData]="field"> <div class="fieldLabel"> <i class="fas fa-bars fa-2x" color="primary" style="cursor: move" cdkDragHandle></i> + {{field.label}} <button mat-icon-button [matMenuTriggerFor]="fieldActions" *ngIf="!field.system"> <mat-icon class="fa fa-ellipsis-v" color="secondary"></mat-icon> </button> @@ -30,7 +31,7 @@ <mat-icon class="fa fa-trash" color="warn"></mat-icon> <span>{{lang.delete}}</span> </button> - </mat-menu>{{field.label}} + </mat-menu> </div> <div class="fieldInput"> <ng-container *ngIf="field.type === 'string'"> diff --git a/src/frontend/app/indexation/indexing-form/indexing-form.component.scss b/src/frontend/app/indexation/indexing-form/indexing-form.component.scss index 4209883561f85dacd6ab72747f6d902f4536f1d2..b9370bb552639655c4f5310dbad69de3efd75e20 100644 --- a/src/frontend/app/indexation/indexing-form/indexing-form.component.scss +++ b/src/frontend/app/indexation/indexing-form/indexing-form.component.scss @@ -49,6 +49,10 @@ .fieldLabel { color: #4A4A4A; + + .cdk-drag-handle { + margin-right: 10px; + } } .fieldState {