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

Rename to shouldShowUsername

parent 2b4083d3
...@@ -69,11 +69,11 @@ export default { ...@@ -69,11 +69,11 @@ export default {
}, },
}, },
computed: { computed: {
showUsername() { shouldShowUsername() {
return this.username.length > 0; return this.username.length > 0;
}, },
avatarTooltipText() { avatarTooltipText() {
return this.showUsername ? '' : this.tooltipText; return this.shouldShowUsername ? '' : this.tooltipText;
}, },
}, },
directives: { directives: {
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
:tooltip-text="avatarTooltipText" :tooltip-text="avatarTooltipText"
:tooltip-placement="tooltipPlacement" :tooltip-placement="tooltipPlacement"
/><span /><span
v-if="username.length > 0" v-if="shouldShowUsername"
v-tooltip v-tooltip
:title="tooltipText" :title="tooltipText"
:tooltip-placement="tooltipPlacement" :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