diff --git a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts index b50b372a28..a9ebf820bf 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.spec.ts @@ -143,7 +143,7 @@ describe('StartProcessInstanceComponent', () => { fixture.whenStable().then(() => { let errorEl = fixture.nativeElement.querySelector('#error-message'); expect(errorEl).not.toBeNull('Expected error message to be present'); - expect(errorEl.innerText.trim()).toBe('START_PROCESS.ERROR.LOAD_PROCESS_DEFS'); + expect(errorEl.innerText.trim()).toBe('ADF_PROCESS_LIST.START_PROCESS.ERROR.LOAD_PROCESS_DEFS'); }); })); @@ -272,7 +272,7 @@ describe('StartProcessInstanceComponent', () => { fixture.detectChanges(); let errorEl = fixture.nativeElement.querySelector('#error-message'); expect(errorEl).not.toBeNull(); - expect(errorEl.innerText.trim()).toBe('START_PROCESS.ERROR.START'); + expect(errorEl.innerText.trim()).toBe('ADF_PROCESS_LIST.START_PROCESS.ERROR.START'); }); })); diff --git a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.ts b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.ts index e089e4e8a8..4700d9fdd0 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/start-process.component.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/start-process.component.ts @@ -73,7 +73,7 @@ export class StartProcessInstanceComponent implements OnChanges { this.processDefinitions = res; }, () => { - this.errorMessageId = 'START_PROCESS.ERROR.LOAD_PROCESS_DEFS'; + this.errorMessageId = 'ADF_PROCESS_LIST.START_PROCESS.ERROR.LOAD_PROCESS_DEFS'; } ); } @@ -88,7 +88,7 @@ export class StartProcessInstanceComponent implements OnChanges { this.start.emit(res); }, (err) => { - this.errorMessageId = 'START_PROCESS.ERROR.START'; + this.errorMessageId = 'ADF_PROCESS_LIST.START_PROCESS.ERROR.START'; this.error.error(err); } ); diff --git a/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.html b/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.html index 1d8f276af5..b579446142 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.html +++ b/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.html @@ -1,14 +1,14 @@ -
{{'START_TASK.FORM.TITLE'|translate}}
+
{{'ADF_TASK_LIST.START_TASK.FORM.TITLE'|translate}}
- @@ -16,7 +16,7 @@ - @@ -28,7 +28,7 @@ [matDatepicker]="taskDatePicker" (keydown)="true" (focusout)="onDateChanged($event.srcElement.value)" - placeholder="{{'START_TASK.FORM.LABEL.DATE'|translate}}" + placeholder="{{'ADF_TASK_LIST.START_TASK.FORM.LABEL.DATE'|translate}}" [(ngModel)]="startTaskmodel.dueDate" id="date_id"> @@ -36,16 +36,16 @@ (dateChanged)="onDateChanged($event)">
-
{{'START_TASK.FORM.DATE.ERROR'|translate}}
+
{{'ADF_TASK_LIST.START_TASK.FORM.DATE.ERROR'|translate}}
warning
- - {{'START_TASK.FORM.LABEL.NONE'|translate}} + {{'ADF_TASK_LIST.START_TASK.FORM.LABEL.NONE'|translate}} {{ getDisplayUser(user.firstName, user.lastName, ' ')}} @@ -58,9 +58,9 @@ - - {{'START_TASK.FORM.LABEL.NONE'|translate}} + {{'ADF_TASK_LIST.START_TASK.FORM.LABEL.NONE'|translate}} {{ form.name }} @@ -73,10 +73,10 @@ diff --git a/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.spec.ts b/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.spec.ts index 90b45d9f77..3bc621e1a9 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.spec.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/start-task.component.spec.ts @@ -308,7 +308,7 @@ describe('StartTaskComponent', () => { it('should show start task button', () => { expect(element.querySelector('#button-start')).toBeDefined(); expect(element.querySelector('#button-start')).not.toBeNull(); - expect(element.querySelector('#button-start').textContent).toContain('START_TASK.FORM.ACTION.START'); + expect(element.querySelector('#button-start').textContent).toContain('ADF_TASK_LIST.START_TASK.FORM.ACTION.START'); }); it('should fetch all users on ngonint', () => { @@ -357,7 +357,7 @@ describe('StartTaskComponent', () => { let selectElement = fixture.nativeElement.querySelector('#assignee_id'); expect(selectElement).not.toBeNull(); expect(selectElement).toBeDefined(); - expect(selectElement.attributes['aria-label'].value).toContain('START_TASK.FORM.LABEL.ASSIGNEE'); + expect(selectElement.attributes['aria-label'].value).toContain('ADF_TASK_LIST.START_TASK.FORM.LABEL.ASSIGNEE'); }); })); @@ -365,7 +365,7 @@ describe('StartTaskComponent', () => { component.forms = fakeForms; fixture.detectChanges(); let selectElement = fixture.nativeElement.querySelector('#form_id'); - expect(selectElement.attributes['aria-label'].value).toContain('START_TASK.FORM.LABEL.FORM'); + expect(selectElement.attributes['aria-label'].value).toContain('ADF_TASK_LIST.START_TASK.FORM.LABEL.FORM'); }); it('should get formatted fullname', () => {