Skip to content

Commit b822d00

Browse files
Merge pull request #1075 from Codeinwp/bugfix/1048
fix: update sharing status label
2 parents a490d09 + 5590da1 commit b822d00

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

vue/src/vue-elements/reusables/status-box.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ export default {
5656
required: true
5757
}
5858
},
59-
data() {
60-
const [ title, description ] = this.label.split( ':' )
61-
return {
62-
title,
63-
description
59+
computed: {
60+
title() {
61+
return this.label.split(':')[0]
62+
},
63+
description() {
64+
return this.label.split(':')[1]
6465
}
6566
}
6667
}

0 commit comments

Comments
 (0)