Skip to content

Commit

Permalink
Provide preference services on for tasks/processes on component modul…
Browse files Browse the repository at this point in the history
…e level (#7579)
  • Loading branch information
BSekula committed Apr 14, 2022
1 parent a02a8a4 commit 2db6d9e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Expand Up @@ -59,7 +59,7 @@
[attr.data-automation-id]="'adf-datatable-cell-header-drag-icon-placeholder-'+col.key"
></span>

<span *ngIf="col.title" class="adf-datatable-cell-value"> {{col.title | translate}}</span>
<span *ngIf="col.title" class="adf-datatable-cell-value">{{col.title | translate}}</span>

<span *ngIf="col.title && col.sortable && isDraggingHeaderColumn" class="adf-sr-only" aria-live="polite">
{{ getSortLiveAnnouncement(col) | translate: { string: col.title | translate } }}
Expand Down
Expand Up @@ -20,6 +20,8 @@ import { CommonModule } from '@angular/common';
import { ProcessListCloudComponent } from './components/process-list-cloud.component';
import { MaterialModule } from '../../material.module';
import { CoreModule } from '@alfresco/adf-core';
import { LocalPreferenceCloudService } from '../../services/local-preference-cloud.service';
import { PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN } from '../../services/cloud-token.service';

@NgModule({
imports: [
Expand All @@ -28,6 +30,10 @@ import { CoreModule } from '@alfresco/adf-core';
CoreModule

],
providers: [{
provide: PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN,
useClass: LocalPreferenceCloudService
}],
declarations: [ProcessListCloudComponent],
exports: [ProcessListCloudComponent]
})
Expand Down
Expand Up @@ -21,8 +21,9 @@ import { MaterialModule } from '../../material.module';
import { TaskListCloudComponent } from './components/task-list-cloud.component';
import { ServiceTaskListCloudComponent } from './components/service-task-list-cloud.component';
import { CoreModule } from '@alfresco/adf-core';
import { TASK_LIST_CLOUD_TOKEN } from '../../services/cloud-token.service';
import { TASK_LIST_CLOUD_TOKEN, TASK_LIST_PREFERENCES_SERVICE_TOKEN } from '../../services/cloud-token.service';
import { TaskListCloudService } from './services/task-list-cloud.service';
import { LocalPreferenceCloudService } from '../../services/local-preference-cloud.service';

@NgModule({
imports: [
Expand All @@ -42,6 +43,10 @@ import { TaskListCloudService } from './services/task-list-cloud.service';
{
provide: TASK_LIST_CLOUD_TOKEN,
useClass: TaskListCloudService
},
{
provide: TASK_LIST_PREFERENCES_SERVICE_TOKEN,
useClass: LocalPreferenceCloudService
}
]
})
Expand Down

0 comments on commit 2db6d9e

Please sign in to comment.