Skip to content

Commit

Permalink
Merge branch 'next-minor' into rc/12.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMinkeRitense committed Dec 20, 2024
2 parents 186777c + 1474818 commit 4f536a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/valtimo/components/src/lib/pipes/ellipsis.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {Pipe, PipeTransform} from '@angular/core';

@Pipe({name: 'valtimoEllipsis', standalone: true})
export class EllipsisPipe implements PipeTransform {
public transform(content: string, limit: number | null): string {
public transform(content: string, limit?: number | null): string {
if (!limit) return content;

return content.substring(0, limit - 1) + (content.length > limit ? '...' : '');
return content.substring(0, limit) + (content.length > limit ? '...' : '');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class DossierSupportingProcessStartModalComponent {
public formSubmitted(): void {
this.modal.hide();
this.formSubmit.emit();
this.formDefinition$.next(null);
}

public gotoFormLinkScreen(): void {
Expand Down

0 comments on commit 4f536a6

Please sign in to comment.