|
@ -301,6 +301,10 @@ export class CreateOrUpdateActivityDialog implements OnDestroy { |
|
|
.get('type') |
|
|
.get('type') |
|
|
.valueChanges.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.valueChanges.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe((type: Type) => { |
|
|
.subscribe((type: Type) => { |
|
|
|
|
|
if (type === 'STAKE') { |
|
|
|
|
|
this.activityForm.get('unitPrice').setValue(0); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (type === 'ITEM') { |
|
|
if (type === 'ITEM') { |
|
|
this.activityForm |
|
|
this.activityForm |
|
|
.get('accountId') |
|
|
.get('accountId') |
|
|