Commit 306441cf authored by catea792's avatar catea792

add close button to modal

parent bd47df80
...@@ -22,9 +22,14 @@ ...@@ -22,9 +22,14 @@
</v-carousel> </v-carousel>
</v-col> </v-col>
<v-col> <v-col>
<v-row class="flex-row align-center justify-space-between mt-2">
<v-card-title v-model="item.name" class="modal-title" style="margin-left:-30px"> <v-card-title v-model="item.name" class="modal-title" style="margin-left:-30px">
{{ name }} {{ name }}
</v-card-title> </v-card-title>
<v-btn icon @click="$emit('close')" style="background-color:red">
<v-icon color="white">mdi-close</v-icon>
</v-btn>
</v-row>
<v-row class="flex-row align-center"> <v-row class="flex-row align-center">
<h3 class="mr-4"> <h3 class="mr-4">
Price: Price:
...@@ -183,6 +188,9 @@ export default { ...@@ -183,6 +188,9 @@ export default {
} }
}, },
methods: { methods: {
close () {
this.$props.status = false
},
closeDialog () { closeDialog () {
this.$props.status = false this.$props.status = false
}, },
......
...@@ -136,11 +136,11 @@ ...@@ -136,11 +136,11 @@
:key="item.id" :key="item.id"
link link
> >
<v-list-item-avatar tile align-center min-height="80px" cover> <v-list-item-avatar class="item-avatar" tile align-center min-height="80px" cover>
<v-img :src="item.product.images[0]" /> <v-img :src="item.product.images[0]" />
</v-list-item-avatar> </v-list-item-avatar>
<v-list-item-content class="list-item-card"> <v-list-item-content class="list-item-card">
<v-list-item-title>{{ item.product.name }}</v-list-item-title> <v-list-item-title class="font-weight-bold">{{ item.product.name }}</v-list-item-title>
<v-list-item-subtitle>{{ item.quantity +"x"+ item.product.price + "$" }}</v-list-item-subtitle> <v-list-item-subtitle>{{ item.quantity +"x"+ item.product.price + "$" }}</v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
...@@ -201,15 +201,15 @@ ...@@ -201,15 +201,15 @@
<v-list dense three-line> <v-list dense three-line>
<v-list-item v-for="item in wishlist" :key="item.name" link> <v-list-item v-for="item in wishlist" :key="item.name" link>
<v-list-item-avatar> <v-list-item-avatar tile class="align-center item-avatar">
<v-img :src="item.product.images[0]" /> <v-img tile :src="item.product.images[0]" />
</v-list-item-avatar> </v-list-item-avatar>
<v-list-item-content> <v-list-item-content class="list-item-card">
<v-list-item-title>{{ item.product.name }}</v-list-item-title> <v-list-item-title class="font-weight-bold">{{ item.product.name }}</v-list-item-title>
<v-list-item-subtitle>{{ item.product.price }}</v-list-item-subtitle> <v-list-item-subtitle>{{ item.product.price + '$' }}</v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
<v-list-item-action> <v-list-item-action class="align-self-center">
<v-btn icon @click="removeWishlist(item, index)"> <v-btn icon @click="removeWishlist(item, index)">
<v-icon color="grey lighten-1"> <v-icon color="grey lighten-1">
mdi-close-circle-outline mdi-close-circle-outline
...@@ -539,4 +539,9 @@ b { ...@@ -539,4 +539,9 @@ b {
.list-item::-webkit-scrollbar { .list-item::-webkit-scrollbar {
display: none; display: none;
} }
.item-avatar {
height: 70px !important;
width: 70px !important;
min-width: 70px;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment