mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-3638] - implement priority drodpown widget (#6351)
* [AAE-3638] - implement priority drodpown widget * refactor task cloud service function * fix remove value on card view text item and move priorities values in app.config.json * revert app config unnecary changes * PR changes * fix unit test * fix more unit tests * PR changes * create task cloud response model * remove commented code * fix e2e * fix start task e2e and add return type
This commit is contained in:
@@ -29,11 +29,11 @@ import {
|
||||
UpdateNotification,
|
||||
CardViewUpdateService,
|
||||
CardViewDatetimeItemModel,
|
||||
CardViewArrayItem
|
||||
CardViewArrayItem,
|
||||
CardViewSelectItemModel
|
||||
} from '@alfresco/adf-core';
|
||||
import { TaskDetailsCloudModel } from '../../start-task/models/task-details-cloud.model';
|
||||
import { TaskCloudService } from '../../services/task-cloud.service';
|
||||
import { NumericFieldValidator } from '../../../validators/numeric-field.validator';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-cloud-task-header',
|
||||
@@ -158,13 +158,13 @@ export class TaskHeaderCloudComponent implements OnInit, OnDestroy, OnChanges {
|
||||
key: 'status'
|
||||
}
|
||||
),
|
||||
new CardViewTextItemModel(
|
||||
new CardViewSelectItemModel(
|
||||
{
|
||||
label: 'ADF_CLOUD_TASK_HEADER.PROPERTIES.PRIORITY',
|
||||
value: this.taskDetails.priority,
|
||||
value: this.taskDetails.priority.toString(),
|
||||
key: 'priority',
|
||||
editable: true,
|
||||
validators: [new NumericFieldValidator()]
|
||||
options$: of(this.taskCloudService.priorities)
|
||||
}
|
||||
),
|
||||
new CardViewDatetimeItemModel(
|
||||
|
Reference in New Issue
Block a user