Skip to content

Commit 96da754

Browse files
committed
add readonly to all inputs that open a modal or select type inputs (#4090)
1 parent ef8d744 commit 96da754

File tree

11 files changed

+11
-0
lines changed

11 files changed

+11
-0
lines changed

src/app/shared/components/dependent-fields/dependent-field/dependent-field.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
type="text"
1212
[placeholder]="placeholder || ('dependentField.selectLabel' | transloco: { label: label })"
1313
[ngModel]="displayValue"
14+
readonly
1415
(blur)="onBlur()"
1516
(click)="openModal()"
1617
/>

src/app/shared/components/fy-add-to-report/fy-add-to-report.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
type="text"
1414
[placeholder]="'fyAddToReport.selectExpenseReport' | transloco"
1515
[ngModel]="displayValue"
16+
readonly
1617
(blur)="onBlur()"
1718
(click)="openModal()"
1819
[ngClass]="{ 'fy-select--input-disabled': disabled() }"

src/app/shared/components/fy-currency/fy-currency.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</div>
99
<input
1010
class="fy-currency--input smartlook-show"
11+
readonly
1112
(click)="openCurrencyModal()"
1213
formControlName="currency"
1314
(blur)="onBlur()"

src/app/shared/components/fy-location/fy-location.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
type="text"
1414
[placeholder]="placeholder() || ('fyLocation.selectLocation' | transloco: { label: label() })"
1515
[ngModel]="displayValue"
16+
readonly
1617
(blur)="onBlur()"
1718
(click)="openModal()"
1819
/>

src/app/shared/components/fy-multiselect/fy-multiselect.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
type="text"
1414
[placeholder]="computedPlaceholder"
1515
[ngModel]="displayValue"
16+
readonly
1617
(blur)="onBlur()"
1718
(click)="openModal()"
1819
[ngClass]="{ 'fy-select--input-disabled': disabled() }"

src/app/shared/components/fy-select-project/fy-select-project.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
[placeholder]="placeholder() || ('fySelectProject.selectLabel' | transloco: { label: label })"
1515
[ngModel]="displayValue"
1616
(blur)="onBlur()"
17+
readonly
1718
(click)="openModal()"
1819
/>
1920
<mat-icon class="fy-select-project--icon" svgIcon="arrow-down"></mat-icon>

src/app/shared/components/fy-select-vendor/fy-select-vendor.component.html

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/shared/components/fy-select/fy-select.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
type="text"
1515
[placeholder]="!disabled() ? placeholder() || ('fySelect.selectLabel' | transloco: { label: label }) : ''"
1616
[ngModel]="displayValue"
17+
readonly
1718
(blur)="onBlur()"
1819
(click)="openModal()"
1920
[ngClass]="{ 'fy-select--input-disabled': disabled() }"

src/app/shared/components/fy-userlist/fy-userlist.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
type="text"
1414
[placeholder]="placeholder() || ('fyUserlist.select' | transloco) + ' ' + label()"
1515
[ngModel]="displayValue"
16+
readonly
1617
(blur)="onBlur()"
1718
(click)="openModal()"
1819
[ngClass]="{ 'fy-select--input-disabled': disabled() }"

src/app/shared/components/route-selector/route-selector.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
class="route-selector--input smartlook-show"
107107
type="text"
108108
[placeholder]="'routeSelector.enterRoute' | transloco"
109+
readonly
109110
(click)="openModal()"
110111
[ngClass]="{ 'route-selector--input-disabled': form.controls.mileageLocations.disabled }"
111112
[disabled]="form.controls.mileageLocations.disabled"

0 commit comments

Comments
 (0)