Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(default-theme): click:remove emit in SwCartProduct (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemek Spaczek authored May 27, 2020
1 parent cbc05d1 commit e1feab5
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion packages/default-theme/components/SwCartProduct.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,28 @@
</SwButton>
</div>
</template>
<!-- TODO: Remove after update SfUI to 0.7.16 or higher-->
<template #remove="{removeHandler}">
<SfCircleIcon
icon="cross"
aria-label="Remove"
class="sf-circle-icon--small sf-collected-product__remove sf-collected-product__remove--circle-icon"
@click="removeHandler"
/>
<SwButton
class="sf-button--text sf-collected-product__remove sf-collected-product__remove--text"
@click="removeHandler"
>Remove</SwButton
>
</template>
</SfCollectedProduct>
</template>
<script>
import { SfProperty, SfCollectedProduct } from '@storefront-ui/vue'
import {
SfProperty,
SfCollectedProduct,
SfCircleIcon,
} from '@storefront-ui/vue'
import { getProductMainImageUrl } from '@shopware-pwa/helpers'
import { useCart } from '@shopware-pwa/composables'
import { ref, watch, computed } from '@vue/composition-api'
Expand All @@ -30,6 +48,7 @@ import SwButton from '@shopware-pwa/default-theme/components/atoms/SwButton'
export default {
components: {
SwButton,
SfCircleIcon,
SfProperty,
SfCollectedProduct,
},
Expand Down

1 comment on commit e1feab5

@vercel
Copy link

@vercel vercel bot commented on e1feab5 May 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.