diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-04-04 11:21:27 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-04-04 11:21:27 +0300 |
commit | 52515dda0b2fc3818eae243a324f5dfb88414c37 (patch) | |
tree | 6e70b10982edd02bc9dd4358568830e9c8115bdc /app/assets | |
parent | e81b4f90553e5141b2a6f16f5c71815ad510e7c7 (diff) |
Copy sidebar todo component from EE
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/sidebar/components/todo_toggle/todo.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/sidebar/components/todo_toggle/todo.vue b/app/assets/javascripts/sidebar/components/todo_toggle/todo.vue index 706e6ca19c3..57125c78cf6 100644 --- a/app/assets/javascripts/sidebar/components/todo_toggle/todo.vue +++ b/app/assets/javascripts/sidebar/components/todo_toggle/todo.vue @@ -50,6 +50,9 @@ export default { buttonLabel() { return this.isTodo ? MARK_TEXT : TODO_TEXT; }, + buttonTooltip() { + return !this.collapsed ? undefined : this.buttonLabel; + }, collapsedButtonIconClasses() { return this.isTodo ? 'todo-undone' : ''; }, @@ -69,7 +72,7 @@ export default { <button v-tooltip :class="buttonClasses" - :title="buttonLabel" + :title="buttonTooltip" :aria-label="buttonLabel" :data-issuable-id="issuableId" :data-issuable-type="issuableType" |