mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3593] remove rxjs-compat layer (#3886)
* remove rxjs-compat layer * add rxjs linter * observable new instead of create * lint fixes * disable rxjs-no-subject-value for certain scenarios * fix auth rxjs
This commit is contained in:
committed by
Eugenio Romano
parent
ccc52d40dd
commit
f5a7b07370
@@ -103,7 +103,7 @@ export class AnalyticsService {
|
||||
} else if (type === 'task' && reportId && processDefinitionId) {
|
||||
return this.getTasksByProcessDefinitionId(reportId, processDefinitionId);
|
||||
} else {
|
||||
return Observable.create(observer => {
|
||||
return new Observable(observer => {
|
||||
observer.next(null);
|
||||
observer.complete();
|
||||
});
|
||||
@@ -117,7 +117,7 @@ export class AnalyticsService {
|
||||
paramOptions.push(new ParameterValueModel({ id: 'Active', name: 'Active' }));
|
||||
paramOptions.push(new ParameterValueModel({ id: 'Complete', name: 'Complete' }));
|
||||
|
||||
return Observable.create(observer => {
|
||||
return new Observable(observer => {
|
||||
observer.next(paramOptions);
|
||||
observer.complete();
|
||||
});
|
||||
@@ -132,7 +132,7 @@ export class AnalyticsService {
|
||||
paramOptions.push(new ParameterValueModel({ id: 'byMonth', name: 'By month' }));
|
||||
paramOptions.push(new ParameterValueModel({ id: 'byYear', name: 'By year' }));
|
||||
|
||||
return Observable.create(observer => {
|
||||
return new Observable(observer => {
|
||||
observer.next(paramOptions);
|
||||
observer.complete();
|
||||
});
|
||||
@@ -145,7 +145,7 @@ export class AnalyticsService {
|
||||
paramOptions.push(new ParameterValueModel({ id: 'totalTime', name: 'Total time spent in a process step' }));
|
||||
paramOptions.push(new ParameterValueModel({ id: 'avgTime', name: 'Average time spent in a process step' }));
|
||||
|
||||
return Observable.create(observer => {
|
||||
return new Observable(observer => {
|
||||
observer.next(paramOptions);
|
||||
observer.complete();
|
||||
});
|
||||
|
Reference in New Issue
Block a user