change_style_unitTest

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2019-02-14 13:56:59 +08:00
parent faaa531558
commit 651a142429
5 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -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>

View File

@ -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 {

View File

@ -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) ||

View File

@ -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;