Skip to content

Commit ecb8983

Browse files
committed
feat - increase number of lines and characters for notes
1 parent babd748 commit ecb8983

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/codever-ui/src/app/my-notes/save-note-form/note-editor.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
>
8888
</textarea>
8989
<div class="description-chars-counter">
90-
{{ content.value ? content.value.length : 0 }} / 10000
90+
{{ content.value ? content.value.length : 0 }} / {{maxNumberOfCharacters}}
9191
</div>
9292
<div class="clear"></div>
9393
<div
@@ -101,7 +101,7 @@
101101
<div *ngIf="content.errors.tooManyCharacters">
102102
Your description has
103103
{{ content.errors.tooManyCharacters.value }} characters. Maximum
104-
10000 characters are allowed.
104+
30000 characters are allowed.
105105
</div>
106106
</div>
107107
</div>

apps/codever-ui/src/app/my-notes/save-note-form/note-editor.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ export class NoteEditorComponent implements OnInit, OnDestroy, OnChanges {
8080

8181
filteredTags: Observable<any[]>;
8282

83+
readonly maxNumberOfCharacters = 30000;
84+
8385
@Input()
8486
title; // value of "title" query parameter if present
8587

@@ -170,7 +172,7 @@ export class NoteEditorComponent implements OnInit, OnDestroy, OnChanges {
170172
title: [this.title ? this.title : '', Validators.required],
171173
reference: this.reference,
172174
tags: this.formBuilder.array([], [tagsValidator, Validators.required]),
173-
content: [this.passedContent, textSizeValidator(5000, 500)],
175+
content: [this.passedContent, textSizeValidator(this.maxNumberOfCharacters, 10000)],
174176
});
175177
}
176178

0 commit comments

Comments
 (0)