diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-10-27 11:11:02 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-10-27 11:11:02 +0300 |
commit | 9a2b9d2345c504f888386012a1fefa29de837640 (patch) | |
tree | f1aa23af9e1369f8bd7756b452c499b429028f99 /app/assets/javascripts/vue_shared | |
parent | 2b4083d3ac2e33853dacbcbd45fbf4b9f9e9c4ea (diff) |
Rename to shouldShowUsername
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_link.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_link.vue b/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_link.vue index 792d8b29593..dc32e783258 100644 --- a/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_link.vue +++ b/app/assets/javascripts/vue_shared/components/user_avatar/user_avatar_link.vue @@ -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" |