Skip to content

Commit

Permalink
[VBV-2021] [UI] Introduce visual flag/banner for favorite images
Browse files Browse the repository at this point in the history
+ Added star icon to favorite images

Change-Id: If0524ae64b8c7b43da1fb849d24355506833338c
Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/35911
Upgrade-Verified: jenkins <[email protected]>
Closures-Verified: jenkins <[email protected]>
Bellevue-Verified: jenkins <[email protected]>
CS-Verified: jenkins <[email protected]>
Reviewed-by: Iveta Ilieva <[email protected]>
  • Loading branch information
AlekBoninski committed Jun 13, 2018
1 parent b8b56a8 commit 89d08a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/app/src/js/components/templates/ListItemImageVue.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
role="alert" v-if="model.alert"><i class="fa alert-icon"
:class="{'fa-check': model.alert.type === 'success', 'fa-exclamation-circle': model.alert.type === 'fail'}"
></i><span>{{model.alert.message}}</span></div>
<div class="image-item" :data-name="model.registry + '/' + model.name">
<div class="image-header">
<div class="image-item" :data-name="model.registry + '/' + model.name">
<div v-if="isFavorite" class="favImage"><i class="fa fa-star"></i></div>
<div class="image-header">
<img :src="model.icon"/>
<div class="title-holder">
<div class="title truncateText" :title="model.name">{{model.name}}</div>
Expand Down
6 changes: 6 additions & 0 deletions ui/app/src/styles/components/_list-views.scss
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@
margin-left: -20px;
margin-right: -20px;
}
.list-view .image-item .favImage {
position: absolute;
top: 1px;
left: 5px;
color: $secondary-hint_title_color;
}
.list-view .image-item .image-content {
font-weight: 300;
margin-bottom: 10px;
Expand Down

0 comments on commit 89d08a5

Please sign in to comment.