Skip to content

Commit

Permalink
#393. Added tooltips to new icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed Mar 28, 2018
1 parent 5645628 commit 8ecc93d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/renderer/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,20 @@
<nav class="navbar errors">
<div class="container-fluid">
<i class="navbar-text">{{messages.length}} Errors</i>
<ul class="nav navbar-nav navbar-left">
<ul class="nav navbar-nav navbar-left" >
<li>
<a href="#">
<a href="#" v-tooltip.top="tooltip('tooltip-open-errors-window')">
<span class="btn-default fas fa-external-link-alt" @click="openErrorsWindow()"/>
</a>
</li>
<component is="tooltipOpenErrorsWindow" />
<li>
<a href="#">
<a href="#" v-tooltip.top="tooltip('tooltip-write-errors-provenance')">
<object data="static/img/validation-results.svg" type="image/svg+xml" />
<!-- <span class="btn-default fas fa-file-alt" /> -->
</a>
</li>
<component is="tooltipWriteErrorsProvenance" />
</ul>
</div>
</nav>
Expand Down
6 changes: 6 additions & 0 deletions src/renderer/mixins/HomeTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export default {
},
'tooltipNext': {
template: '<div id="tooltip-next">Next Column Property</div>'
},
'tooltipOpenErrorsWindow': {
template: '<div id="tooltip-open-errors-window">Open Errors in a New Window</div>'
},
'tooltipWriteErrorsProvenance': {
template: '<div id="tooltip-write-errors-provenance">Write Errors to Provenance Information</div>'
}
}
}
Expand Down

0 comments on commit 8ecc93d

Please sign in to comment.