Skip to content

Commit

Permalink
Update tooltips to user new API
Browse files Browse the repository at this point in the history
Also remove old bower dep and installed the peer dependency required for
ember-tooltips
  • Loading branch information
jrjohnson authored and stopfstedt committed Jun 20, 2016
1 parent 6e6e4db commit d7e1e93
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 1 addition & 4 deletions app/components/detail-terms-list-item.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import Ember from 'ember';

const { Component, computed } = Ember;
const { Component } = Ember;

export default Component.extend({
tagName: 'li',
canEdit: false,
term: null,
tooltipContent: computed('term.description', function() {
return this.get('term.description');
}),
click: function() {
if (this.get('canEdit')) {
let term = this.get('term');
Expand Down
4 changes: 0 additions & 4 deletions app/components/selectable-terms-list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export default Component.extend({
return selectedTerms.contains(term);
}),

tooltipContent: computed('term.description', function() {
return this.get('term.description');
}),

click: function() {
let term = this.get('term');
if (this.get('isSelected')) {
Expand Down
5 changes: 5 additions & 0 deletions app/templates/components/detail-terms-list-item.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{#if term.description.length}}
{{#tooltip-on-component}}
{{term.description}}
{{/tooltip-on-component}}
{{/if}}
{{#if term.isTopLevel}}
{{term.title}}
{{else}}
Expand Down
5 changes: 5 additions & 0 deletions app/templates/components/selectable-terms-list-item.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{#if term.description.length}}
{{#tooltip-on-component}}
{{term.description}}
{{/tooltip-on-component}}
{{/if}}
{{term.title}}
<span class="actions">
{{#if isSelected}}
Expand Down
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"blanket": "~1.1.7",
"lodash": "~4.0.0",
"Faker": "~3.0.1",
"tooltipster": "~3.3.0",
"font-awesome": "~4.5.0",
"pikaday": "~1.3.3",
"moment": ">= 2.8.0",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"ember-rl-dropdown": "0.7.0",
"ember-simple-auth": "1.1.0",
"ember-simple-auth-token": "1.1.1",
"ember-tether": "0.3.1",
"ember-tooltips": "1.0.0",
"ember-truth-helpers": "1.2.0",
"ember-watson": "^0.8.0",
Expand Down

0 comments on commit d7e1e93

Please sign in to comment.