mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Resolved lint issues
This commit is contained in:
committed by
Jatin_Chugh
parent
f62f74b098
commit
c4aaa8ff59
+3
-3
@@ -212,10 +212,10 @@ export class SearchDateRangeAdvancedTabbedComponent implements SearchWidget, OnI
|
||||
private updateDisplayValue(value: Partial<SearchDateRangeAdvanced>, field: string) {
|
||||
this.combinedDisplayValue = '';
|
||||
this.displayValueMapByField.set(field, this.generateDisplayValue(value));
|
||||
this.displayValueMapByField.forEach((displayValue: string, field: string) => {
|
||||
this.displayValueMapByField.forEach((displayValue: string, fieldForDisplayLabel: string) => {
|
||||
if (displayValue) {
|
||||
const displayLabelForField = `${this.translateService.instant(this.settings.displayedLabelsByField[field]).toUpperCase()}: ${displayValue}`;
|
||||
this.combinedDisplayValue = this.combinedDisplayValue ? `${this.combinedDisplayValue} ${displayLabelForField}` : `${displayLabelForField}`
|
||||
const displayLabelForField = `${this.translateService.instant(this.settings.displayedLabelsByField[fieldForDisplayLabel]).toUpperCase()}: ${displayValue}`;
|
||||
this.combinedDisplayValue = this.combinedDisplayValue ? `${this.combinedDisplayValue} ${displayLabelForField}` : `${displayLabelForField}`;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
-1
@@ -40,7 +40,6 @@
|
||||
margin-top: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+6
-1
@@ -124,6 +124,11 @@ export class SearchDateRangeAdvancedComponent implements OnInit, OnDestroy {
|
||||
this.betweenStartDateFormControl.clearValidators();
|
||||
this.betweenEndDateFormControl.clearValidators();
|
||||
break;
|
||||
default:
|
||||
this.form.controls.inLastValue.clearValidators();
|
||||
this.betweenStartDateFormControl.clearValidators();
|
||||
this.betweenEndDateFormControl.clearValidators();
|
||||
break;
|
||||
}
|
||||
this.betweenStartDateFormControl.updateValueAndValidity();
|
||||
this.betweenEndDateFormControl.updateValueAndValidity();
|
||||
@@ -197,7 +202,7 @@ export class SearchDateRangeAdvancedComponent implements OnInit, OnDestroy {
|
||||
// }
|
||||
|
||||
onLastDateValueChanged(event: Event) {
|
||||
let value: string = event.target['value'];
|
||||
const value: string = event.target['value'];
|
||||
event.target['value'] = value.replace(/[-.]*0*([1-9]*\d*)/g, '$1');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user