Remove the border of default label when filtering images by label

Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
FangyuanCheng 2018-12-06 15:35:42 +08:00
parent 657ee8a150
commit 158fb92745
2 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,7 @@
<div class="row flex-items-xs-right rightPos">
<div id="filterArea">
<div class='filterLabelPiece' *ngIf="!withAdmiral" [hidden]="!openLabelFilterPiece" [style.left.px]='filterLabelPieceWidth'>
<hbr-label-piece [hidden]='!filterOneLabel' [label]="filterOneLabel" [labelWidth]="130"></hbr-label-piece>
<hbr-label-piece *ngIf="showlabel" [hidden]='!filterOneLabel' [label]="filterOneLabel" [labelWidth]="130"></hbr-label-piece>
</div>
<div class="flex-xs-middle">
<hbr-filter [withDivider]="true" filterPlaceholder="{{'TAG.FILTER_FOR_TAGS' | translate}}" (filterEvt)="doSearchTagNames($event)"

View File

@ -103,6 +103,7 @@ export class TagComponent implements OnInit, AfterViewInit {
openLabelFilterPanel: boolean;
openLabelFilterPiece: boolean;
retagSrcImage: string;
showlabel: boolean;
createdComparator: Comparator<Tag> = new CustomComparator<Tag>("created", "date");
@ -394,8 +395,10 @@ export class TagComponent implements OnInit, AfterViewInit {
if (labelInfo) {
if (!labelInfo.iconsShow) {
this.filterLabel(labelInfo);
this.showlabel = true;
} else {
this.unFilterLabel(labelInfo);
this.showlabel = false;
}
}
}