Merge pull request #4068 from CatoTH/Amendment-Bugfixes-20181216
Amendment bugfixes
This commit is contained in:
commit
a164b3416e
@ -127,7 +127,7 @@ export class AmendmentCreateWizardComponent extends BaseViewComponent {
|
|||||||
state_id: [''],
|
state_id: [''],
|
||||||
recommendation_id: [''],
|
recommendation_id: [''],
|
||||||
submitters_id: [],
|
submitters_id: [],
|
||||||
supporters_id: [],
|
supporters_id: [[]],
|
||||||
origin: ['']
|
origin: ['']
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
mat-menu-item
|
mat-menu-item
|
||||||
[disabled]="hasCollissions(change)"
|
[disabled]="hasCollissions(change, changes)"
|
||||||
(click)="setAcceptanceValue(change, 'accepted')"
|
(click)="setAcceptanceValue(change, 'accepted')"
|
||||||
>
|
>
|
||||||
<mat-icon>thumb_up</mat-icon>
|
<mat-icon>thumb_up</mat-icon>
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
mat-menu-item
|
mat-menu-item
|
||||||
[disabled]="hasCollissions(change)"
|
[disabled]="hasCollissions(change, changes)"
|
||||||
(click)="setAcceptanceValue(change, 'rejected')"
|
(click)="setAcceptanceValue(change, 'rejected')"
|
||||||
>
|
>
|
||||||
<mat-icon>thumb_down</mat-icon>
|
<mat-icon>thumb_down</mat-icon>
|
||||||
|
@ -101,11 +101,13 @@ export class MotionDetailDiffComponent extends BaseViewComponent implements Afte
|
|||||||
return (
|
return (
|
||||||
changes.filter((otherChange: ViewUnifiedChange) => {
|
changes.filter((otherChange: ViewUnifiedChange) => {
|
||||||
return (
|
return (
|
||||||
(otherChange.getChangeId() === change.getChangeId() &&
|
otherChange.getChangeId() !== change.getChangeId() &&
|
||||||
(otherChange.getLineFrom() >= change.getLineFrom() &&
|
((otherChange.getLineFrom() >= change.getLineFrom() &&
|
||||||
otherChange.getLineFrom() < change.getLineTo())) ||
|
otherChange.getLineFrom() < change.getLineTo()) ||
|
||||||
(otherChange.getLineTo() > change.getLineFrom() && otherChange.getLineTo() <= change.getLineTo()) ||
|
(otherChange.getLineTo() > change.getLineFrom() &&
|
||||||
(otherChange.getLineFrom() < change.getLineFrom() && otherChange.getLineTo() > change.getLineTo())
|
otherChange.getLineTo() <= change.getLineTo()) ||
|
||||||
|
(otherChange.getLineFrom() < change.getLineFrom() &&
|
||||||
|
otherChange.getLineTo() > change.getLineTo()))
|
||||||
);
|
);
|
||||||
}).length > 0
|
}).length > 0
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user