Skip to content

Instantly share code, notes, and snippets.

View SeyZ's full-sized avatar

Sandro Munda SeyZ

View GitHub Profile
@SeyZ
SeyZ / component.js
Last active July 17, 2017 09:14 — forked from lucasscariot/component.js
Forest - Conversation Smart View
'use strict';
import Ember from 'ember';
import SmartViewMixin from 'client/mixins/smart-view-mixin';
export default Ember.Component.extend(SmartViewMixin.default, {
initConversations: function () {
this.send('switchConversation', this.get('records.firstObject'));
}.on('didInsertElement').observes('records.[]'),
actions: {
switchConversation: function (conversation) {