Remove selected
This commit is contained in:
parent
272c059e65
commit
a64a2a5b09
@ -121,6 +121,16 @@
|
|||||||
<span class="all-caps-label">
|
<span class="all-caps-label">
|
||||||
{{ 'file-attributes-csv-import.table-header.title' | translate: { length: activeFields.length } }}
|
{{ 'file-attributes-csv-import.table-header.title' | translate: { length: activeFields.length } }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<ng-container *ngIf="areSomeFieldsSelected">
|
||||||
|
<redaction-circle-button
|
||||||
|
(action)="deactivateSelection()"
|
||||||
|
tooltip="file-attributes-csv-import.table-header.actions.remove-selected"
|
||||||
|
type="dark-bg"
|
||||||
|
icon="red:trash"
|
||||||
|
>
|
||||||
|
</redaction-circle-button>
|
||||||
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-header" redactionSyncWidth="table-item">
|
<div class="table-header" redactionSyncWidth="table-item">
|
||||||
|
|||||||
@ -169,6 +169,10 @@
|
|||||||
padding: 0 24px 0 10px;
|
padding: 0 24px 0 10px;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border-top: 1px solid $separator;
|
border-top: 1px solid $separator;
|
||||||
|
|
||||||
|
.all-caps-label {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cdk-virtual-scroll-viewport {
|
cdk-virtual-scroll-viewport {
|
||||||
|
|||||||
@ -165,6 +165,11 @@ export class FileAttributesCsvImportDialogComponent implements OnInit {
|
|||||||
return this.selectedFields.indexOf(field) !== -1;
|
return this.selectedFields.indexOf(field) !== -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public deactivateSelection() {
|
||||||
|
this.activeFields = [...this.activeFields.filter((field) => !this.isFieldSelected(field.csvColumn))];
|
||||||
|
this.selectedFields = [];
|
||||||
|
}
|
||||||
|
|
||||||
public async save() {
|
public async save() {
|
||||||
const promises: Promise<FileAttributeConfig | FileAttributesConfig>[] = [
|
const promises: Promise<FileAttributeConfig | FileAttributesConfig>[] = [
|
||||||
this._fileAttributesControllerService.addOrUpdateFileAttributesBaseConfig(this.baseConfigForm.getRawValue(), this.ruleSetId).toPromise()
|
this._fileAttributesControllerService.addOrUpdateFileAttributesBaseConfig(this.baseConfigForm.getRawValue(), this.ruleSetId).toPromise()
|
||||||
|
|||||||
@ -1122,7 +1122,10 @@
|
|||||||
"csv-column": "CSV Column",
|
"csv-column": "CSV Column",
|
||||||
"no-hovered-column": "Preview CSV column by hovering the entry.",
|
"no-hovered-column": "Preview CSV column by hovering the entry.",
|
||||||
"table-header": {
|
"table-header": {
|
||||||
"title": "{{length}} file attributes"
|
"title": "{{length}} file attributes",
|
||||||
|
"actions": {
|
||||||
|
"remove-selected": "Remove Selected"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"file": "File:",
|
"file": "File:",
|
||||||
"table-col-names": {
|
"table-col-names": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user