mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-02 17:35:08 +00:00
Hide all counters in Workspace which do not provide value
This commit is contained in:
parent
06921783bf
commit
34e32019d1
@ -278,6 +278,10 @@ export class ProcessFiltersCloudComponent implements OnInit, OnChanges {
|
||||
* @param filter filter
|
||||
*/
|
||||
updateFilterCounter(filter: ProcessFilterCloudModel): void {
|
||||
if (!filter?.showCounter) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.fetchProcessFilterCounter(filter)
|
||||
.pipe(
|
||||
tap((filterCounter) => {
|
||||
|
@ -28,7 +28,8 @@ export const fakeProcessCloudFilters = [
|
||||
appName: 'mock-appName',
|
||||
sort: 'startDate',
|
||||
status: 'MOCK_ALL',
|
||||
order: 'DESC'
|
||||
order: 'DESC',
|
||||
showCounter: true
|
||||
},
|
||||
{
|
||||
name: 'MOCK_PROCESS_NAME_2',
|
||||
@ -38,7 +39,8 @@ export const fakeProcessCloudFilters = [
|
||||
appName: 'mock-appName',
|
||||
sort: 'startDate',
|
||||
status: 'MOCK-RUNNING',
|
||||
order: 'DESC'
|
||||
order: 'DESC',
|
||||
showCounter: false
|
||||
},
|
||||
{
|
||||
name: 'MOCK_PROCESS_NAME_3',
|
||||
@ -48,7 +50,8 @@ export const fakeProcessCloudFilters = [
|
||||
appName: 'mock-appName',
|
||||
sort: 'startDate',
|
||||
status: 'MOCK-COMPLETED',
|
||||
order: 'DESC'
|
||||
order: 'DESC',
|
||||
showCounter: false
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -49,6 +49,7 @@ export class ProcessFilterCloudModel {
|
||||
suspendedDateType: DateCloudFilterType;
|
||||
completedDate: Date;
|
||||
environmentId?: string;
|
||||
showCounter: boolean;
|
||||
|
||||
processDefinitionNames: string[] | null;
|
||||
processNames: string[] | null;
|
||||
@ -74,6 +75,7 @@ export class ProcessFilterCloudModel {
|
||||
this.name = obj.name || null;
|
||||
this.key = obj.key || null;
|
||||
this.environmentId = obj.environmentId;
|
||||
this.showCounter = obj.showCounter || false;
|
||||
this.icon = obj.icon || null;
|
||||
this.index = obj.index || null;
|
||||
this.appName = obj.appName || obj.appName === '' ? obj.appName : null;
|
||||
|
@ -378,7 +378,8 @@ export class ProcessFilterCloudService {
|
||||
appName,
|
||||
sort: 'startDate',
|
||||
status: 'RUNNING',
|
||||
order: 'DESC'
|
||||
order: 'DESC',
|
||||
showCounter: true
|
||||
}),
|
||||
new ProcessFilterCloudModel({
|
||||
name: 'ADF_CLOUD_PROCESS_FILTERS.COMPLETED_PROCESSES',
|
||||
@ -387,7 +388,8 @@ export class ProcessFilterCloudService {
|
||||
appName,
|
||||
sort: 'startDate',
|
||||
status: 'COMPLETED',
|
||||
order: 'DESC'
|
||||
order: 'DESC',
|
||||
showCounter: false
|
||||
}),
|
||||
new ProcessFilterCloudModel({
|
||||
name: 'ADF_CLOUD_PROCESS_FILTERS.ALL_PROCESSES',
|
||||
@ -396,7 +398,8 @@ export class ProcessFilterCloudService {
|
||||
appName,
|
||||
sort: 'startDate',
|
||||
status: '',
|
||||
order: 'DESC'
|
||||
order: 'DESC',
|
||||
showCounter: false
|
||||
})
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user