Skip to content
Snippets Groups Projects
Commit 912caf28 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

- Fix too long message not sent

parent c0c3dc3a
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
"MESSAGE_NOT_READABLE": "Unable to read message.", "MESSAGE_NOT_READABLE": "Unable to read message.",
"USER_NOT_RECIPIENT": "You are not the recipient of this message: unable to read it.", "USER_NOT_RECIPIENT": "You are not the recipient of this message: unable to read it.",
"NOT_AUTHENTICATED_MESSAGE": "The authenticity of the message is not certain or its content is corrupted.", "NOT_AUTHENTICATED_MESSAGE": "The authenticity of the message is not certain or its content is corrupted.",
"REMOVE_MESSAGE_FAILED": "Error while deleting message" "REMOVE_MESSAGE_FAILED": "Error while deleting message",
"MESSAGE_CONTENT_TOO_LONG": "Value too long ({{maxLength}} characters max)."
} }
}, },
"MARKET": { "MARKET": {
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"TO": "A", "TO": "A",
"OBJECT": "Objet", "OBJECT": "Objet",
"OBJECT_HELP": "Objet", "OBJECT_HELP": "Objet",
"ENCRYPTED_HELP": "Veuillez noter que ce message sera crypté avant envoi. Seul le destinataire pourra le lire.", "ENCRYPTED_HELP": "Veuillez noter que ce message sera chiffré avant envoi, afin que seul le destinataire puisse le lire, et qu'il soit assuré que vous soyez bien son auteur.",
"MESSAGE": "Message", "MESSAGE": "Message",
"MESSAGE_HELP": "Contenu du message", "MESSAGE_HELP": "Contenu du message",
"CONTENT_CONFIRMATION": "Le contenu du message est vide.<br/><br/>Voulez-vous néanmoins envoyer le message ?" "CONTENT_CONFIRMATION": "Le contenu du message est vide.<br/><br/>Voulez-vous néanmoins envoyer le message ?"
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
"MESSAGE_NOT_READABLE": "Lecture du message impossible.", "MESSAGE_NOT_READABLE": "Lecture du message impossible.",
"USER_NOT_RECIPIENT": "Vous n'etes pas le destinataire de ce message : déchiffrement impossible.", "USER_NOT_RECIPIENT": "Vous n'etes pas le destinataire de ce message : déchiffrement impossible.",
"NOT_AUTHENTICATED_MESSAGE": "L'authenticité du message est douteuse ou son contenu est corrompu.", "NOT_AUTHENTICATED_MESSAGE": "L'authenticité du message est douteuse ou son contenu est corrompu.",
"REMOVE_MESSAGE_FAILED": "Erreur de suppression du message" "REMOVE_MESSAGE_FAILED": "Erreur de suppression du message",
"MESSAGE_CONTENT_TOO_LONG": "Valeur trop longue ({{maxLength}} caractères max)."
} }
}, },
"MARKET": { "MARKET": {
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
ng-show="form.$submitted && form.title.$error" ng-show="form.$submitted && form.title.$error"
ng-messages="form.title.$error"> ng-messages="form.title.$error">
<div class="form-error" ng-message="maxlength"> <div class="form-error" ng-message="maxlength">
<span translate="ERROR.FIELD_TOO_LONG"></span> <span translate="MESSAGE.ERROR.MESSAGE_CONTENT_TOO_LONG" translate-values="{maxLength: 256}"></span>
</div> </div>
<div class="form-error" ng-message="required"> <div class="form-error" ng-message="required">
<span translate="ERROR.FIELD_REQUIRED"></span> <span translate="ERROR.FIELD_REQUIRED"></span>
...@@ -57,17 +57,17 @@ ...@@ -57,17 +57,17 @@
ng-class="{'item-input-error': form.$submitted && form.content.$invalid}"> ng-class="{'item-input-error': form.$submitted && form.content.$invalid}">
<span class="input-label">{{'MESSAGE.COMPOSE.MESSAGE' | translate}}</span> <span class="input-label">{{'MESSAGE.COMPOSE.MESSAGE' | translate}}</span>
<textarea placeholder="{{'MESSAGE.COMPOSE.MESSAGE_HELP' | translate}}" <textarea placeholder="{{'MESSAGE.COMPOSE.MESSAGE_HELP' | translate}}"
name="message" name="content"
ng-model="formData.content" ng-model="formData.content"
rows="10" rows="10"
ng-maxlength="1024"> ng-maxlength="5000">
</textarea> </textarea>
</label> </label>
<div class="form-errors" <div class="form-errors"
ng-show="form.$submitted && form.content.$error" ng-show="form.$submitted && form.content.$error"
ng-messages="form.content.$error"> ng-messages="form.content.$error">
<div class="form-error" ng-message="maxlength"> <div class="form-error" ng-message="maxlength">
<span translate="ERROR.FIELD_TOO_LONG"></span> <span translate="MESSAGE.ERROR.MESSAGE_CONTENT_TOO_LONG" translate-values="{maxLength: 5000}"></span>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment