-
-
Save sukima/77cadd90f840cca8f73684d795c77dc0 to your computer and use it in GitHub Desktop.
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
firstReport: computed.alias('reports.firstObject'), | |
someOtherThing: computed('reports.[]', function() { | |
return get(this, 'reports').map(report => doCoolStuff(report)); | |
}), | |
... | |
... | |
... | |
getReports: task(function*() { | |
let reports = yield get(this, 'store').query('report-menu', { | |
q: 'classname-EQOrder' + get(this, 'constant').DELIM, | |
orderby: 'sequence' | |
}); | |
set(this, 'reports', reports); | |
}) | |
actions: { | |
fetchReports() { | |
get(this, 'getReports').perform(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment