Skip to content

Commit

Permalink
fix a few ui things
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Jan 12, 2021
1 parent 8cf19c3 commit 3754f1c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<template #navigation>
<SfHeaderNavigationItem class="nav-item" data-cy="app-header-url_women" label="WOMEN" :link="localePath('/c/women')" />
<SfHeaderNavigationItem class="nav-item" data-cy="app-header-url_men" label="MEN" :link="localePath('/c/men')" />
<SfHeaderNavigationItem class="nav-item" data-cy="app-header-url_kids" label="KIDS" :link="localePath('/c/kids')" />
</template>
<template #aside>
<LocaleSelector class="smartphone-only" />
Expand Down
12 changes: 0 additions & 12 deletions packages/core/nuxt-theme-module/theme/components/CartSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@
/>
</div>
</template>
<template #actions>
<div class="desktop-only collected-product__actions">
<SfButton class="sf-button--text collected-product__save">
{{ $t('Save for later') }}
</SfButton>
<SfButton
class="sf-button--text collected-product__compare"
>
{{ $t('Add to compare') }}
</SfButton>
</div>
</template>
</SfCollectedProduct>
</transition-group>
</div>
Expand Down
9 changes: 2 additions & 7 deletions packages/core/nuxt-theme-module/theme/pages/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
:is-on-wishlist="false"
class="products__product-card-horizontal"
@click:wishlist="addItemToWishlist({ product })"
@click:add-to-cart="addItemToCart({ product, quantity: 1 })"
:link="localePath(`/p/${productGetters.getId(product)}/${productGetters.getSlug(product)}`)"
>
<template #configuration>
Expand All @@ -218,13 +219,6 @@
>
{{ $t('Save for later') }}
</SfButton>
<SfButton
class="sf-button--text desktop-only"
style="margin: 0 0 0 auto; display: block;"
@click="() => {}"
>
{{ $t('Add to compare') }}
</SfButton>
</template>
</SfProductCardHorizontal>
</transition-group>
Expand Down Expand Up @@ -373,6 +367,7 @@ import { onSSR } from '@vue-storefront/core';
import LazyHydrate from 'vue-lazy-hydration';
import Vue from 'vue';
// TODO(addToCart qty, horizontal): https://github.com/vuestorefront/storefront-ui/issues/1606
export default {
transition: 'fade',
setup(props, context) {
Expand Down
8 changes: 1 addition & 7 deletions packages/core/nuxt-theme-module/theme/pages/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{{size.label}}
</SfSelectOption>
</SfSelect>
<div v-if="options.color" class="product__colors desktop-only">
<div v-if="options.color && options.color.length > 1" class="product__colors desktop-only">
<p class="product__color-label">{{ $t('Color') }}:</p>
<SfColor
data-cy="product-color_update"
Expand All @@ -85,12 +85,6 @@
class="product__add-to-cart"
@click="addItem({ product, quantity: parseInt(qty) })"
/>
<SfButton data-cy="product-btn_save-later" class="sf-button--text desktop-only product__save">
{{ $t('Save for later') }}
</SfButton>
<SfButton data-cy="product-btn_add-to-compare" class="sf-button--text desktop-only product__compare">
{{ $t('Add to compare') }}
</SfButton>
</div>

<LazyHydrate when-idle>
Expand Down

0 comments on commit 3754f1c

Please sign in to comment.