This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lkjlkj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
isGTSUser: Ember.computed('user.userType', function() { | |
return this.get('user.userType') === 'gts_user' | |
}), | |
actions: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ApplicationAdapter from './application'; | |
export default ApplicationAdapter.extend({ | |
pathForType: function(modelName){ | |
return 'billables/eligible'; | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
/** | |
* use to support non restful actions on your api | |
* | |
* see more: | |
* http://articles.jeffjewiss.com/non-restful-actions-mixin-for-ember-data-model/ | |
* | |
*/ | |
export default Ember.Mixin.create({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watchTags: Ember.on('init', Ember.observer('tagList', function () { | |
var tagList = this.get('tagList'); | |
var justTagList = []; | |
tagList.forEach(function (item) { | |
justTagList.pushObject(item.get('crmTag')); | |
}); | |
this.set('selectedTags', justTagList); | |
this.set('initialTags', justTagList); | |
})), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allAttendingDetailsValid: Ember.computed('parents','students', function(){ | |
var self = this; | |
var parents = this.get('parents'); | |
var students = this.get('students'); | |
var validationFields; | |
var passedValidation = true; | |
parents.forEach((parent) => { | |
if(parent.get('groupRequestHasUsers').get('length') > 0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isValid: Ember.computed('emergencyContactsAreAvlid', 'allAttendingConsentsAreValid', function(){ | |
var promises = []; | |
var ePromise = this.get('emergencyContactsAreValid'); | |
promises.push(ePromise); | |
var cPromise = this.get('allAttendingConsentsAreValid').then(function(result){ | |
return result; | |
}); | |
promises.push(cPromise); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
session: Ember.inject.service(), | |
notify: Ember.inject.service(), | |
teamToAdd: false, | |
actions: { | |
toggleAddTeamForm: function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"id": 1, | |
"type": "user", | |
"attributes": { | |
"first" : payload.general.first, | |
"last" : payload.general.last, | |
}, | |
relationships: { | |
userRealty: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DS from 'ember-data'; | |
export default DS.Model.extend({ | |
mlsName: DS.attr('string'), | |
mlsUserId: DS.attr('string'), | |
licenseNum: DS.attr('string') | |
}); |