Skip to content

Commit 4193208

Browse files
committed
Fixing some search bar placement.
1 parent 31665fc commit 4193208

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

eform-client/src/app/modules/device-users/components/device-users-page/device-users-page.component.html

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
<eform-new-subheader>
2-
<button
3-
id="newDeviceUserBtn"
4-
*ngIf="selectCurrentUserClaimsDeviceUsersCreate$ | async"
5-
matTooltip="{{ 'Create Device User' | translate }}"
6-
(click)="openCreateModal()"
7-
class="btn-primary btn-primary--icon-left"
8-
>
9-
<mat-icon>add</mat-icon>
10-
<span>{{ 'New Device User' | translate }}</span>
11-
</button>
2+
<div class="d-flex flex-row justify-content-center align-items-center gap-12">
3+
<div class="text-field--rounded mt-4">
4+
<mat-form-field>
5+
<mat-label>{{ 'Search' | translate }}</mat-label>
6+
<input
7+
matInput
8+
type="text"
9+
(ngModelChange)="onSearchChanged($event)"
10+
[ngModel]="selectDeviceUsersNameFilter$ | async"
11+
id="labelInput"
12+
/>
13+
<mat-icon matSuffix>search</mat-icon>
14+
</mat-form-field>
15+
</div>
16+
<div class="line-vert"></div>
17+
<button
18+
id="newDeviceUserBtn"
19+
*ngIf="selectCurrentUserClaimsDeviceUsersCreate$ | async"
20+
matTooltip="{{ 'Create Device User' | translate }}"
21+
(click)="openCreateModal()"
22+
class="btn-primary btn-primary--icon-left"
23+
>
24+
<mat-icon>add</mat-icon>
25+
<span>{{ 'New Device User' | translate }}</span>
26+
</button>
27+
</div>
1228
</eform-new-subheader>
1329

1430
<!--<mat-card class="d-flex flex-column" style="padding: 0;">-->
@@ -41,7 +57,7 @@
4157
[showPaginator]="false"
4258
[pageOnFront]="false"
4359
[rowStriped]="false"
44-
[showToolbar]="true"
60+
[showToolbar]="false"
4561
[showColumnMenuButton]="false"
4662
[toolbarTemplate]="toolbarTpl">
4763
</mtx-grid>

eform-client/src/app/modules/device-users/components/device-users-page/device-users-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class DeviceUsersPageComponent implements OnInit, OnDestroy {
6262
public selectCurrentUserClaimsDeviceUsersCreate$ = this.authStore.select(selectCurrentUserClaimsDeviceUsersCreate);
6363
public selectCurrentUserClaimsDeviceUsersUpdate$ = this.authStore.select(selectCurrentUserClaimsDeviceUsersCreate);
6464
public selectCurrentUserClaimsDeviceUsersDelete$ = this.authStore.select(selectCurrentUserClaimsDeviceUsersCreate);
65-
private selectDeviceUsersNameFilter$ = this.authStore.select(selectDeviceUsersNameFilter);
65+
public selectDeviceUsersNameFilter$ = this.authStore.select(selectDeviceUsersNameFilter);
6666

6767
ngOnInit() {
6868
this.iconRegistry.addSvgIconLiteral('password-validation', this.sanitizer.bypassSecurityTrustHtml(PasswordValidationIcon));

0 commit comments

Comments
 (0)