Skip to content

Commit

Permalink
Merge pull request #1707 from RubenGeo/feature-more-160
Browse files Browse the repository at this point in the history
Feature more 160
  • Loading branch information
RubenGeo authored Jan 6, 2021
2 parents a782f81 + 0930e07 commit 1c55124
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export class ProgramPeopleAffectedComponent implements OnInit {
'page.program.program-people-affected.action-explanations.reject',
),
minLength: 20,
maxLength: 160,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ <h2 *ngIf="subHeader">

<ion-label>
{{ 'common.confirm-message-label'|translate:{
minLength: inputProps.minLength,
maxLength: inputProps.maxLength
minLength: inputProps.minLength
}
}}
</ion-label>
Expand All @@ -53,13 +52,12 @@ <h2 *ngIf="subHeader">
rows="3"
autoGrow="true"
[minlength]="inputProps.minLength"
[maxlength]="inputProps.maxLength"
[value]="inputProps.defaultValue"
[placeholder]="inputProps.placeholder"
style="font-family: monospace; border: 1px solid currentColor;"
></ion-textarea>
<ion-note>
{{ input?.value ? input?.value?.length : 0 }} / ({{ inputProps.minLength }} - {{ inputProps.maxLength }})
{{ input?.value ? input?.value?.length : 0 }} (≥ {{ inputProps.minLength }})
</ion-note>
</div>
</ion-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export interface InputProps {
placeholder?: string;
defaultValue?: string;
minLength: number;
maxLength: number;
}

@Component({
Expand Down
4 changes: 2 additions & 2 deletions interfaces/HO-Portal/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"notify-included": "Notify included People Affected"
},
"action-explanations": {
"reject": "When you do this, an text message will be automatically sent to them. You need to compose this below. Please ensure to give a reason & if possible, what their next steps could be."
"reject": "When you do this, an text message will be automatically sent to them. You need to compose this below. Please ensure to give a reason & if possible, what their next steps could be. Please note if you go over 160 characters the PA may receive multiple texts if they have a feature (non smart) phone."
},
"no-checkboxes": "There are currently no People Affected to which this action can be applied.",
"submit-warning": "You are about to:",
Expand Down Expand Up @@ -261,7 +261,7 @@
"collapse": "Collapse",
"update": "Update",
"confirm": "Are you sure?",
"confirm-message-label": "The message needs to be between {{minLength}} and {{maxLength}} characters.",
"confirm-message-label": "The message needs to be longer than {{minLength}} characters.",
"cancel": "Cancel",
"ok": "OK",
"export-error": "Something went wrong with the export.",
Expand Down

0 comments on commit 1c55124

Please sign in to comment.