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

FIX #9156 fix add data + css

parent b85a6bc7
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<span class="area"> <span class="area">
<form> <form>
<mat-form-field appearance="outline" floatLabel="never"> <mat-form-field appearance="outline" floatLabel="never">
<input name="availableData" type="text" matInput [formControl]="dataControl" placeholder="{{lang.availableDatas}}" <input id="availableData" name="availableData" type="text" matInput [formControl]="dataControl" placeholder="{{lang.availableDatas}}"
[matAutocomplete]="auto"> [matAutocomplete]="auto">
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="addData($event)"> <mat-autocomplete #auto="matAutocomplete" (optionSelected)="addData($event)">
<mat-option *ngFor="let item of filteredDataOptions | async" [value]="item" class="dataList"> <mat-option *ngFor="let item of filteredDataOptions | async" [value]="item" class="dataList">
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
} }
&_chrono { &_chrono {
color: rgba(0,0,0,0.4); color: rgba(0, 0, 0, 0.4);
font-size: 90%; font-size: 90%;
} }
} }
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
} }
.isSelectedMenu { .isSelectedMenu {
box-shadow: inset 0px 0px 5px 0px #656565; background: rgba(249, 152, 48, 0.14);
} }
.align_centerData { .align_centerData {
......
...@@ -7,6 +7,7 @@ import { FormControl } from '@angular/forms'; ...@@ -7,6 +7,7 @@ import { FormControl } from '@angular/forms';
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop'; import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
import { startWith, map } from 'rxjs/operators'; import { startWith, map } from 'rxjs/operators';
declare function $j(selector: any): any;
@Component({ @Component({
selector: 'list-administration', selector: 'list-administration',
templateUrl: "list-administration.component.html", templateUrl: "list-administration.component.html",
...@@ -184,6 +185,7 @@ export class ListAdministrationComponent implements OnInit { ...@@ -184,6 +185,7 @@ export class ListAdministrationComponent implements OnInit {
let i = this.availableData.map((e: any) => { return e.value; }).indexOf(event.option.value.value); let i = this.availableData.map((e: any) => { return e.value; }).indexOf(event.option.value.value);
this.displayedSecondaryData.push(event.option.value); this.displayedSecondaryData.push(event.option.value);
this.availableData.splice(i, 1); this.availableData.splice(i, 1);
$j('#availableData').blur();
this.dataControl.setValue(''); this.dataControl.setValue('');
} }
} }
......
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