sajjad 3 years ago
parent 62b2ad528e
commit 07d6a75007

@ -13,12 +13,7 @@
:loading="loading" :loading="loading"
> >
<template v-if="text"> <template v-if="text">
<template v-if="icon" <template v-if="icon"><v-icon :size="size" :class="icon"></v-icon></template>
><v-icon
:size="size"
:class="[icon, { 'mr-1': !isModal, modal__icon: isModal }]"
></v-icon
></template>
{{ text }} {{ text }}
<template v-if="iconRight" <template v-if="iconRight"
><v-icon :size="size" :class="[iconRight, 'ml-1']"></v-icon ><v-icon :size="size" :class="[iconRight, 'ml-1']"></v-icon
@ -50,9 +45,6 @@ export default {
bgColor: { bgColor: {
default: "transparent", default: "transparent",
}, },
isModal: {
default: false,
},
type: { type: {
type: String, type: String,
default: "button", default: "button",
@ -75,10 +67,6 @@ export default {
.filter-btn .v-btn__content .v-icon::before { .filter-btn .v-btn__content .v-icon::before {
margin-left: 0 !important; margin-left: 0 !important;
} }
// .modal__icon::before {
// margin-right: 0 !important;
// margin-left: 0 !important;
// }
@import "../../../styles/setup/variables.scss"; @import "../../../styles/setup/variables.scss";
@each $color, $value in $allColors { @each $color, $value in $allColors {
.v-btn.color-#{ "" + $color} { .v-btn.color-#{ "" + $color} {

@ -66,10 +66,8 @@
<RectangleButton <RectangleButton
class="btn__modal--cancel pl-0" class="btn__modal--cancel pl-0"
text="cancel" text="cancel"
icon="WMi-cancel-1" icon="WMi-cancel-linear"
text-mode="text" text-mode="text"
size="large"
:is-modal="true"
height="29" height="29"
@click.native="$_closeModal()" @click.native="$_closeModal()"
/> />

@ -75,10 +75,8 @@
<RectangleButton <RectangleButton
class="btn__modal--cancel pl-0" class="btn__modal--cancel pl-0"
text="cancel" text="cancel"
icon="WMi-cancel-1" icon="WMi-cancel-linear"
text-mode="text" text-mode="text"
size="large"
:is-modal="true"
height="29" height="29"
@click.native="clearFilter" @click.native="clearFilter"
/> />

@ -34,10 +34,8 @@
<RectangleButton <RectangleButton
class="btn__modal--cancel pl-0" class="btn__modal--cancel pl-0"
text="cancel" text="cancel"
icon="WMi-cancel-1" icon="WMi-cancel-linear"
text-mode="text" text-mode="text"
size="large"
:is-modal="true"
height="29" height="29"
@click.native="$_closeModal()" @click.native="$_closeModal()"
/> />

@ -66,10 +66,8 @@
<RectangleButton <RectangleButton
class="btn__modal--cancel pl-0" class="btn__modal--cancel pl-0"
text="clear" text="clear"
icon="WMi-cancel-1" icon="WMi-cancel-linear"
text-mode="text" text-mode="text"
size="large"
:is-modal="true"
height="29" height="29"
@click.native="clearFilter" @click.native="clearFilter"
/> />

@ -54,10 +54,8 @@
<RectangleButton <RectangleButton
class="btn__modal--cancel pl-0" class="btn__modal--cancel pl-0"
text="clear" text="clear"
icon="WMi-cancel-1" icon="WMi-cancel-linear"
text-mode="text" text-mode="text"
size="large"
:is-modal="true"
height="29" height="29"
@click.native="clearFilter" @click.native="clearFilter"
/> />

@ -44,14 +44,7 @@
class="mt-3" class="mt-3"
/> --> /> -->
<div class="pb-3 align mt-2"> <div class="pb-3 align mt-2">
<div <div class="series__workout__title wa__f__m__eb text-uppercase mb-2">
class="
series__workout__title
wa__f__m__eb
text-uppercase
mb-2
"
>
{{ item.name }} {{ item.name }}
</div> </div>
<div class="series__workout__description"> <div class="series__workout__description">
@ -65,9 +58,7 @@
<template v-if="Object.keys(selectedWorkout).length !== 0"> <template v-if="Object.keys(selectedWorkout).length !== 0">
<v-divider class="mt-6"></v-divider> <v-divider class="mt-6"></v-divider>
<v-row class="mt-1"> <v-row class="mt-1">
<v-col cols="12" <v-col cols="12"><AddWorkoutsItem :addWorkout="selectedWorkout" /></v-col>
><AddWorkoutsItem :addWorkout="selectedWorkout"
/></v-col>
</v-row> </v-row>
</template> </template>
<div class="mt-6"> <div class="mt-6">
@ -116,10 +107,8 @@
<RectangleButton <RectangleButton
class="btn__modal--cancel pl-0" class="btn__modal--cancel pl-0"
text="cancel" text="cancel"
icon="WMi-cancel-1" icon="WMi-cancel-linear"
text-mode="text" text-mode="text"
size="large"
:is-modal="true"
height="29" height="29"
@click.native="$_closeModal()" @click.native="$_closeModal()"
/> />
@ -183,10 +172,7 @@ export default {
}, },
}, },
methods: { methods: {
...mapActions("workoutToSeries", [ ...mapActions("workoutToSeries", ["loadWorkoutsToSeries", "addWorkoutToSeries"]),
"loadWorkoutsToSeries",
"addWorkoutToSeries",
]),
...mapMutations("workoutToSeries", ["SET_FILTER_WORKOUTS_TO_SERIES"]), ...mapMutations("workoutToSeries", ["SET_FILTER_WORKOUTS_TO_SERIES"]),
closeModal() { closeModal() {
this.SET_FILTER_WORKOUTS_TO_SERIES({}); this.SET_FILTER_WORKOUTS_TO_SERIES({});
@ -239,4 +225,4 @@ export default {
.align { .align {
line-height: 4px; line-height: 4px;
} }
</style> </style>

Loading…
Cancel
Save