diff --git a/src/app/components/shared/_dialogs/create-comment/create-comment.component.html b/src/app/components/shared/_dialogs/create-comment/create-comment.component.html index ac527ff6e42b474e17bc69eb7a021dc558edc934..3f4d32f786d5afea87405bfd5edcfd6f6ff2009b 100644 --- a/src/app/components/shared/_dialogs/create-comment/create-comment.component.html +++ b/src/app/components/shared/_dialogs/create-comment/create-comment.component.html @@ -37,7 +37,7 @@ matTextareaAutosize matAutosizeMinRows="5" matAutosizeMaxRows="10" - maxlength="500" + maxlength="{{user.role === 3 ? 1000 : 500}}" [formControl]="bodyForm" aria-labelledby="ask-question-description" autofocus @@ -53,7 +53,7 @@ </mat-hint> <mat-hint align="end"> <span aria-hidden="true"> - {{commentBody.value.length}} / 500 + {{commentBody.value.length}} / {{user.role === 3 ? 1000 : 500}} </span> </mat-hint> </mat-form-field> diff --git a/src/app/components/shared/comment-answer/comment-answer.component.html b/src/app/components/shared/comment-answer/comment-answer.component.html index bf7da8b80a9dbfe2a49d6ba2f068734a510323e9..de1b456be4ffffa8b6f38c9021924b71a71cef97 100644 --- a/src/app/components/shared/comment-answer/comment-answer.component.html +++ b/src/app/components/shared/comment-answer/comment-answer.component.html @@ -21,8 +21,8 @@ matInput matTextareaAutosize matAutosizeMinRows="3" - matAutosizeMaxRows="8" - maxlength="500" + matAutosizeMaxRows="10" + maxlength="1000" name="answer"> </textarea> <mat-hint align="start"> @@ -32,7 +32,7 @@ </mat-hint> <mat-hint align="end"> <span aria-hidden="true"> - {{ answer ? answer.length : 0 }} / 500 + {{ answer ? answer.length : 0 }} / 1000 </span> </mat-hint> </mat-form-field>