Created
May 16, 2018 10:04
-
-
Save basz/d2dba716ce2e4acac3e52ebcc6358798 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| properties: hasMany('dossier/order-property', { async: true }), | |
| propertyValue(propertyName) { | |
| return this.get('properties').then((properties) => { | |
| const property = properties.findBy('name', propertyName); | |
| if (isNone(property)) { | |
| return null; | |
| } | |
| return property.get('value'); | |
| }); | |
| }, | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment