Skip to content

Commit

Permalink
Update code to comply with Ember 2.8.0.
Browse files Browse the repository at this point in the history
Check discussion in emberjs/ember.js#14266
  • Loading branch information
josemariaruiz authored and jacobq committed Jan 25, 2018
1 parent 85c94a3 commit ab7e899
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions addon/components/md-card-content.js
@@ -1,6 +1,5 @@
import Component from '@ember/component';
import { computed } from '@ember/object';
import { alias } from '@ember/object/computed';
import layout from '../templates/components/md-card-content';

export default Component.extend({
Expand All @@ -9,9 +8,18 @@ export default Component.extend({
classNames: ['card-content'],

classNameBindings: ['class'],
title: alias('parentView.title'),
titleClass: alias('parentView.titleClass'),
activator: alias('parentView.activator'),

title: computed(function() {
return this.get('parentView.title');
}).volatile(),

titleClass: computed(function() {
return this.get('parentView.titleClass');
}).volatile(),

activator: computed(function() {
return this.get('parentView.activator');
}),

cardTitleClass: computed('titleClass', function() {
return this.get('titleClass') || 'black-text';
Expand Down

0 comments on commit ab7e899

Please sign in to comment.