diff --git a/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.html b/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.html
index cd977c293..9e2bcb592 100644
--- a/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.html
+++ b/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.html
@@ -15,7 +15,7 @@
-
-
\ No newline at end of file
+
diff --git a/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.ts b/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.ts
index 206cb9939..e4e3326ac 100644
--- a/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.ts
+++ b/web/src/app/administration/workbasket/details/distribution-targets/dual-list/dual-list.component.ts
@@ -2,17 +2,16 @@ import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { WorkbasketSummary } from 'app/models/workbasket-summary';
import { FilterModel } from 'app/models/filter';
import { Side } from '../distribution-targets.component';
-import { expandDown } from 'app/shared/animations/expand.animation';
+import { expandDownWithoutNgIf } from 'app/shared/animations/expand.animation';
@Component({
selector: 'taskana-dual-list',
templateUrl: './dual-list.component.html',
styleUrls: ['./dual-list.component.scss'],
- animations: [expandDown]
+ animations: [expandDownWithoutNgIf]
})
export class DualListComponent implements OnInit {
-
@Input() distributionTargets: Array;
@Output() distributionTargetsChange = new EventEmitter>();
@Input() distributionTargetsSelected: Array;
@@ -39,5 +38,5 @@ export class DualListComponent implements OnInit {
performAvailableFilter(filterModel: FilterModel) {
this.performDualListFilter.emit({ filterBy: filterModel, side: this.side });
- }
+ }
}
diff --git a/web/src/app/shared/animations/expand.animation.ts b/web/src/app/shared/animations/expand.animation.ts
index 888dfb7b1..b16eded5b 100644
--- a/web/src/app/shared/animations/expand.animation.ts
+++ b/web/src/app/shared/animations/expand.animation.ts
@@ -14,6 +14,19 @@ export const expandDown =
style({ opacity: 0, height: '0px' })])))
]);
+export const expandDownWithoutNgIf =
+ trigger('toggleDownWithoutNgIf', [
+ state('true', style({ opacity: '1', display: 'block' })),
+ state('false', style({ opacity: '0', display: 'none' })),
+ transition('false => true', animate('300ms ease-in', keyframes([
+ style({ opacity: 0, height: '0px' }),
+ style({ opacity: 0.5, height: '50px' }),
+ style({ opacity: 1, height: '*' })]))),
+ transition('true => false', animate('300ms ease-out', keyframes([
+ style({ opacity: 1, height: '*' }),
+ style({ opacity: 0.5, height: '50px' }),
+ style({ opacity: 0, height: '0px' })])))
+ ]);
export const expandRight = trigger('toggleRight', [
transition('void => *', animate('300ms ease-in', keyframes([