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