mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 17:17:46 +01:00
change_style_unitTest
Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
parent
faaa531558
commit
651a142429
@ -31,7 +31,7 @@ $size60:60px;
|
||||
}
|
||||
|
||||
.card-container {
|
||||
margin-top: 21px;
|
||||
margin-top: 40px;
|
||||
.chart-card {
|
||||
width: 200px;
|
||||
margin: 10px;
|
||||
|
@ -144,7 +144,7 @@
|
||||
<button type="button" class="btn btn-link"
|
||||
(click)="versionDownload($event, item)">{{'HELM_CHART.DOWNLOAD' | translate}}</button>
|
||||
<button type="button" class="btn btn-link"
|
||||
[disabled]="selectedRows.length<=0 || !hasDeleteHelmChartVersionPermission"
|
||||
[disabled]="!hasDeleteHelmChartVersionPermission"
|
||||
(click)="deleteVersionCard($event, item)">{{'BUTTON.DELETE' | translate}}</button>
|
||||
</clr-dropdown>
|
||||
</div>
|
||||
|
@ -48,7 +48,7 @@ hbr-resource-label-signpost {
|
||||
}
|
||||
|
||||
.card-container {
|
||||
margin-top: 21px;
|
||||
margin-top: 40px;
|
||||
.card-header {
|
||||
.card-media-block {
|
||||
img {
|
||||
|
@ -110,6 +110,9 @@ export class RecentLogComponent implements OnInit {
|
||||
}
|
||||
|
||||
load(state: State) {
|
||||
if (!state || !state.page) {
|
||||
return;
|
||||
}
|
||||
// Keep it for future filter
|
||||
this.currentState = state;
|
||||
|
||||
@ -155,7 +158,6 @@ export class RecentLogComponent implements OnInit {
|
||||
this.recentLogs = doSorting<AccessLogItem>(this.recentLogs, state);
|
||||
}
|
||||
}
|
||||
|
||||
isMatched(terms: string, log: AccessLogItem): boolean {
|
||||
let reg = new RegExp('.*' + terms + '.*', 'i');
|
||||
return reg.test(log.username) ||
|
||||
|
@ -222,7 +222,7 @@ export class RepositoryGridviewComponent implements OnChanges, OnInit {
|
||||
this.lastFilteredRepoName = repoName;
|
||||
this.currentPage = 1;
|
||||
let st: State = this.currentState;
|
||||
if (!st) {
|
||||
if (!st || !st.page) {
|
||||
st = { page: {} };
|
||||
}
|
||||
st.page.size = this.pageSize;
|
||||
|
Loading…
Reference in New Issue
Block a user