-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #202 from visulate/pgoldtho/recent-history
Pgoldtho/recent history
- Loading branch information
Showing
6 changed files
with
136 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.search-box { | ||
width: 300px; | ||
} | ||
|
||
.mat-card { | ||
max-height: 400px; | ||
overflow-y: auto; | ||
} |
75 changes: 50 additions & 25 deletions
75
ui/src/app/components/find-object/find-object.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,50 @@ | ||
<mat-card> | ||
<form (keydown.enter)="processSearchRequest(searchTerm)"> | ||
<mat-form-field class="search-box" appearance="outline"> | ||
<input [(ngModel)]="searchTerm" [ngModelOptions]="{standalone: true}" | ||
matInput placeholder="Enter a database object name" #searchBox> | ||
</mat-form-field> | ||
</form> | ||
<ng-container *ngIf="searchResult"> | ||
<ng-container *ngFor="let res of searchResult.result"> | ||
<mat-nav-list> | ||
<ng-container *ngFor="let object of res.objects"> | ||
<a mat-list-item | ||
routerLink="/database/{{res.database}}/{{object.owner}}/{{object.object_type}}/{{object.object_name}}" | ||
[queryParams]="{filter: object.object_name}"> | ||
{{res.database}}/{{object.owner}}/{{object.object_type}}/{{object.object_name}} | ||
</a> | ||
</ng-container> | ||
<p *ngIf="res.objects?.length==0">Not found in {{res.database}}</p> | ||
</mat-nav-list> | ||
</ng-container> | ||
</ng-container> | ||
|
||
<button mat-icon-button aria-hidden="false" aria-label="cancel icon" | ||
(click)="processCancel()"> <mat-icon>cancel</mat-icon> </button> | ||
</mat-card> | ||
|
||
<mat-grid-list [cols]="breakpoint" (window:resize)="onResize($event)" rowHeight=420> | ||
<mat-grid-tile> | ||
<mat-card> | ||
<mat-card-title>Search | ||
</mat-card-title> | ||
<form (keydown.enter)="processSearchRequest(searchTerm)"> | ||
<mat-form-field class="search-box" appearance="outline"> | ||
<input [(ngModel)]="searchTerm" [ngModelOptions]="{standalone: true}" matInput | ||
placeholder="Enter a database object name" #searchBox> | ||
</mat-form-field> | ||
</form> | ||
<ng-container *ngIf="searchResult"> | ||
<ng-container *ngFor="let res of searchResult.result"> | ||
<mat-nav-list> | ||
<ng-container *ngFor="let object of res.objects"> | ||
<a mat-list-item | ||
routerLink="/database/{{res.database}}/{{object.owner}}/{{object.object_type}}/{{object.object_name}}" | ||
[queryParams]="{filter: object.object_name}"> | ||
{{res.database}}/{{object.owner}}/{{object.object_type}}/{{object.object_name}} | ||
</a> | ||
</ng-container> | ||
<p *ngIf="res.objects?.length==0">Not found in {{res.database}}</p> | ||
</mat-nav-list> | ||
</ng-container> | ||
</ng-container> | ||
|
||
|
||
</mat-card> | ||
|
||
<button mat-icon-button aria-hidden="false" aria-label="cancel icon" (click)="processCancel()"> | ||
<mat-icon>cancel</mat-icon> | ||
</button> | ||
</mat-grid-tile> | ||
|
||
<mat-grid-tile> | ||
|
||
<mat-card> | ||
<mat-card-title>Recent History | ||
</mat-card-title> | ||
<mat-nav-list *ngFor="let item of history"> | ||
<a mat-list-item routerLink="/database/{{item.endpoint}}/{{item.owner}}/{{item.objectType}}/{{item.objectName}}"> | ||
<!-- [queryParams]="{filter: item.filter}"> --> | ||
/{{item.endpoint}}/{{item.owner}}/{{item.objectType}}/{{item.objectName}}</a> | ||
</mat-nav-list> | ||
</mat-card> | ||
|
||
|
||
</mat-grid-tile> | ||
</mat-grid-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters