Skip to content

Commit

Permalink
feat: DP-108555 change prop type in contact centers recipe component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagox authored Aug 26, 2024
1 parent 643d07a commit f45f302
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ export default {
},
/**
* Number of unread messages
* Number of unread messages, could be a string to support '99+'
*/
unreadCount: {
type: Number,
default: 0,
type: String,
default: null,
},
/**
Expand Down Expand Up @@ -188,7 +188,7 @@ export default {
},
showUnreadCount () {
return this.unreadCount > 0;
return !!this.unreadCount;
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ export default {
/**
* Making this true will hide the unread count badge, the chevron button, and the right slot
*/
hideActions: {
hideActions: {
type: Boolean,
default: false,
},
/**
* Number of unread messages
* Number of unread messages, could be a string to support '99+'
*/
unreadCount: {
type: Number,
default: 0,
type: String,
default: null,
},
/**
Expand Down Expand Up @@ -193,7 +193,7 @@ export default {
},
showUnreadCount () {
return this.unreadCount > 0;
return !!this.unreadCount;
},
},
Expand Down

0 comments on commit f45f302

Please sign in to comment.