Skip to content

Commit c200775

Browse files
MMwandighaMh-Asmi
andauthored
changing of placeholder text in post search page (#901)
Co-authored-by: Mh-Asmi <[email protected]>
1 parent 61e4fc4 commit c200775

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

apps/mobile-mzima-client/src/app/profile/posts/posts.page.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
<app-main-layout title="My posts" (back)="back()" [isSearch]="true" (search)="searchPosts($event)">
1+
<app-main-layout
2+
title="My posts"
3+
(back)="back()"
4+
[isSearch]="true"
5+
[placeholderText]="'Search for Posts'"
6+
(search)="searchPosts($event)"
7+
>
28
<app-button
39
header-end
410
fill="clear"

apps/mobile-mzima-client/src/app/shared/components/choose-deployment/choose-deployment.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[isSearch]="showSearch"
66
[header]="isProfile"
77
(back)="backHandle()"
8+
[placeholderText]="'Search for site or Enter URL'"
89
(search)="searchDeployments($event)"
910
(searchFocus)="isSearchView = true"
1011
(searchBlur)="isSearchView = false"

apps/mobile-mzima-client/src/app/shared/components/main-layout/main-layout.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#searchForm
2323
*ngIf="isSearch"
2424
class="search-form"
25+
[placeholder]="placeholderText"
2526
(formFocus)="searchFocusHandle()"
2627
(formBlur)="searchBlurHandle()"
2728
[(ngModel)]="searchFormValue"

apps/mobile-mzima-client/src/app/shared/components/main-layout/main-layout.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class MainLayoutComponent {
1111
@Input() public title?: string;
1212
@Input() public header = true;
1313
@Input() public isSearch = false;
14+
@Input() public placeholderText: string;
1415
@Output() back = new EventEmitter();
1516
@Output() search = new EventEmitter<string>();
1617
@Output() searchFocus = new EventEmitter();

apps/mobile-mzima-client/src/app/shared/components/search-form/search-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<app-form-control
22
#searchControl
33
class="search-form"
4-
placeholder="Search for site or Enter URL"
4+
[placeholder]="placeholder"
55
[(ngModel)]="value"
66
[rounded]="!isSearchView"
77
[clearable]="!!value?.length"

apps/mobile-mzima-client/src/app/shared/components/search-form/search-form.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export class SearchFormComponent implements ControlValueAccessor {
2222
@Output() public back = new EventEmitter();
2323

2424
@Input() public value?: string;
25+
@Input() public placeholder: string;
2526
@ViewChild('searchControl') public searchControl: FormControlComponent;
2627

2728
public isSearchView = false;

0 commit comments

Comments
 (0)