Skip to content

Commit

Permalink
feat: add reload button for portal (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitij-k-osmosys authored Oct 24, 2024
1 parent fa5b44d commit 563a3f3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,36 @@ <h2 class="p-col-12">Notifications</h2>
*ngIf="applications.length !== 0"
></p-dropdown>
</div>
<div class="p-col-12 p-md-3 filter-row">
<input
type="email"
pInputText
[(ngModel)]="searchValue"
placeholder="Search Notifier Email"
class="grid-input"
pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
#searchInput="ngModel"
/>
<p-button
(onClick)="loadNotificationsLazy({ first: 0, rows: this.pageSize })"
label="Search"
class="grid-button"
[disabled]="searchInput.invalid || !searchInput.value"
/>
<div class="grid-row">
<div class="p-col-12 p-md-3 filter-row">
<input
type="email"
pInputText
[(ngModel)]="searchValue"
placeholder="Search Notifier Email"
class="grid-input"
pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
#searchInput="ngModel"
/>
<p-button
(onClick)="loadNotificationsLazy({ first: 0, rows: this.pageSize })"
label="Search"
class="grid-button"
[disabled]="searchInput.invalid || !searchInput.value"
/>
<p-button
(onClick)="onSearchClear(); loadNotificationsLazy({ first: 0, rows: this.pageSize })"
label="Clear"
class="grid-button"
severity="danger"
[disabled]="!searchValue"
/>
</div>
<p-button
(onClick)="onSearchClear(); loadNotificationsLazy({ first: 0, rows: this.pageSize })"
label="Clear"
(onClick)="loadNotificationsLazy({ first: this.currentPage, rows: this.pageSize })"
label="Reload"
severity="warning"
class="grid-button"
severity="danger"
[disabled]="!searchValue"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,8 @@ tr:hover {
width: 1.8em;
}
}

.grid-row {
display: grid;
grid-template-columns: 1fr auto; /* 1fr for left, auto for right */
}

0 comments on commit 563a3f3

Please sign in to comment.