mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
commit
7137e0c26c
@ -6,3 +6,7 @@
|
||||
padding-right: 16px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.datagrid-foot {
|
||||
margin-bottom: 0.5px;
|
||||
}
|
@ -12,16 +12,12 @@
|
||||
<create-project (create)="createProject($event)"></create-project>
|
||||
</div>
|
||||
<div class="option-right">
|
||||
<clr-dropdown [clrMenuPosition]="'bottom'">
|
||||
<button class="btn btn-link" clrDropdownToggle>
|
||||
{{projectTypes[currentFilteredType] | translate}}
|
||||
<clr-icon shape="caret down"></clr-icon>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a href="javascript:void(0)" clrDropdownItem (click)="doFilterProjects(0)">{{projectTypes[0] | translate}}</a>
|
||||
<a href="javascript:void(0)" clrDropdownItem (click)="doFilterProjects(1)">{{projectTypes[1] | translate}}</a>
|
||||
<div class="select" style="float: left;">
|
||||
<select (change)="doFilterProjects($event)">
|
||||
<option value="0">{{projectTypes[0] | translate}}</option>
|
||||
<option value="1">{{projectTypes[1] | translate}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</clr-dropdown>
|
||||
<grid-filter filterPlaceholder='{{"PROJECT.FILTER_PLACEHOLDER" | translate}}' (filter)="doSearchProjects($event)" [currentValue]="projectName"></grid-filter>
|
||||
<a href="javascript:void(0)" (click)="refresh()">
|
||||
<clr-icon shape="refresh"></clr-icon>
|
||||
|
@ -148,11 +148,13 @@ export class ProjectComponent implements OnInit, OnDestroy {
|
||||
this.retrieve();
|
||||
}
|
||||
|
||||
doFilterProjects(filteredType: number): void {
|
||||
this.isPublic = filteredType;
|
||||
this.currentFilteredType = filteredType;
|
||||
doFilterProjects($event: any): void {
|
||||
if ($event && $event.target && $event.target["value"]) {
|
||||
this.currentFilteredType = $event.target["value"];
|
||||
this.isPublic = this.currentFilteredType;
|
||||
this.retrieve();
|
||||
}
|
||||
}
|
||||
|
||||
toggleProject(p: Project) {
|
||||
if (p) {
|
||||
|
Loading…
Reference in New Issue
Block a user