Skip to content

Commit

Permalink
Merge pull request #213 from os2ulf/feature/OS2UOL-136
Browse files Browse the repository at this point in the history
OS2UOL-136: Removed label setting conditions - now its only sales_banner
  • Loading branch information
tutaru99 authored Dec 3, 2024
2 parents 29dae3b + 135d262 commit bf03abb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion components/view-components/PretixSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const props = defineProps({
>
<BaseTag
v-if="props.data.free"
:data="{ label: data?.sales_banner ? data?.sales_banner : 'Gratis' }"
:data="{ label: 'Gratis' }"
color="secondary"
/>
<div
Expand Down
11 changes: 2 additions & 9 deletions components/views/courseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,10 @@ const currentUrl = computed(() => {
/>
</div>

<div
class="course__tags-item"
v-if="data?.field_is_free || data?.sales_banner"
>
<div class="course__tags-item" v-if="data?.sales_banner">
<BaseTag
:data="{
label: data?.sales_banner
? data?.sales_banner
: data?.field_is_free
? 'Gratis'
: '',
label: data?.sales_banner ? data?.sales_banner : '',
}"
color="secondary"
/>
Expand Down
11 changes: 2 additions & 9 deletions components/views/course_educatorsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,10 @@ const currentUrl = computed(() => {
/>
</div>

<div
class="educators__tags-item"
v-if="data?.field_is_free || data?.sales_banner"
>
<div class="educators__tags-item" v-if="data?.sales_banner">
<BaseTag
:data="{
label: data?.sales_banner
? data?.sales_banner
: data?.field_is_free
? 'Gratis'
: '',
label: data?.sales_banner ? data?.sales_banner : '',
}"
color="secondary"
/>
Expand Down

0 comments on commit bf03abb

Please sign in to comment.