Skip to content

Commit

Permalink
get rid of duplicate slot checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Mar 4, 2024
1 parent 8df3b78 commit e9d49f0
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,8 @@ export default defineComponent({
return (
!!this.title ||
!!this.$slots.title ||
!!this.$slots.title ||
!!this.subtitle ||
!!this.$slots.subtitle ||
!!this.$slots.subtitle ||
!!this.$slots.avatar ||
!!this.$slots.avatar
);
},
Expand All @@ -134,14 +131,14 @@ export default defineComponent({
methods: {
cardClasses() {
return {
"sw-card--grid": !!this.$slots.grid || !!this.$slots.grid,
"sw-card--grid": !!this.$slots.grid,
"sw-card--hero": !!this.hero,
"sw-card--large": this.large,
"has--header": !!this.showHeader,
"has--title": !!this.title || !!this.$slots.title || !!this.$slots.title,
"has--subtitle": !!this.subtitle || !!this.$slots.subtitle || !!this.$slots.subtitle,
"has--toolbar": !!this.$slots.toolbar || !!this.$slots.toolbar,
"has--footer": !!this.$slots.footer || !!this.$slots.footer,
"has--title": !!this.title || !!this.$slots.title,
"has--subtitle": !!this.subtitle,
"has--toolbar": !!this.$slots.toolbar,
"has--footer": !!this.$slots.footer,
};
},
},
Expand Down

0 comments on commit e9d49f0

Please sign in to comment.