Commit 9a2b9d23 authored by Clement Ho's avatar Clement Ho

Rename to shouldShowUsername

parent 2b4083d3
......@@ -69,11 +69,11 @@ export default {
},
},
computed: {
showUsername() {
shouldShowUsername() {
return this.username.length > 0;
},
avatarTooltipText() {
return this.showUsername ? '' : this.tooltipText;
return this.shouldShowUsername ? '' : this.tooltipText;
},
},
directives: {
......@@ -94,7 +94,7 @@ export default {
:tooltip-text="avatarTooltipText"
:tooltip-placement="tooltipPlacement"
/><span
v-if="username.length > 0"
v-if="shouldShowUsername"
v-tooltip
:title="tooltipText"
:tooltip-placement="tooltipPlacement"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment