mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-3638] - update priority option (#6423)
This commit is contained in:
@@ -12,3 +12,4 @@
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 775 B After Width: | Height: | Size: 776 B |
@@ -95,7 +95,7 @@
|
||||
"JSON_CELL": "Json",
|
||||
"COMPLETED_BY": "Completed By",
|
||||
"PRIORITY_VALUES": {
|
||||
"NOT_SET": "Not set",
|
||||
"NONE": "None",
|
||||
"LOW": "Low",
|
||||
"NORMAL": "Normal",
|
||||
"HIGH": "High"
|
||||
|
@@ -27,7 +27,7 @@ export interface TaskPriorityOption {
|
||||
}
|
||||
|
||||
export const DEFAULT_TASK_PRIORITIES: TaskPriorityOption[] = [
|
||||
{ label: 'ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.NOT_SET', value: '0', key: '0' },
|
||||
{ label: 'ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.NONE', value: '0', key: '0' },
|
||||
{ label: 'ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.LOW', value: '1', key: '1' },
|
||||
{ label: 'ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.NORMAL', value: '2', key: '2' },
|
||||
{ label: 'ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.HIGH', value: '3', key: '3' }
|
||||
|
@@ -95,7 +95,8 @@
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
|
||||
<adf-cloud-date-range-filter *ngIf="taskFilterProperty.type === 'date-range'"
|
||||
<adf-cloud-date-range-filter #dateRange
|
||||
*ngIf="taskFilterProperty.type === 'date-range'"
|
||||
[processFilterProperty]="taskFilterProperty"
|
||||
[options]="taskFilterProperty.dateFilterOptions"
|
||||
(dateTypeChange)="onDateTypeChange($event, taskFilterProperty)"
|
||||
|
@@ -135,7 +135,7 @@ describe('TaskHeaderCloudComponent', () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
const options: any = fixture.debugElement.queryAll(By.css('mat-option'));
|
||||
expect(options[0].nativeElement.innerText).toEqual('ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.NOT_SET');
|
||||
expect(options[0].nativeElement.innerText).toEqual('ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.NONE');
|
||||
expect(options[1].nativeElement.innerText).toEqual('ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.LOW');
|
||||
expect(options[2].nativeElement.innerText).toEqual('ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.NORMAL');
|
||||
expect(options[3].nativeElement.innerText).toEqual('ADF_CLOUD_TASK_LIST.PROPERTIES.PRIORITY_VALUES.HIGH');
|
||||
|
@@ -187,12 +187,12 @@ export class DataTableComponentPage {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (a.toLocaleLowerCase() === 'not set') {
|
||||
if (a.toLocaleLowerCase() === 'none') {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (a.toLocaleLowerCase() === 'low') {
|
||||
if (b === 'not set') {
|
||||
if (b === 'none') {
|
||||
return 1;
|
||||
} else {
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user