Bring payload in from the job api response

This commit is contained in:
Michael Lange 2018-01-25 16:50:31 -08:00
parent 0d4a245f7c
commit 4f8a59a56c
1 changed files with 6 additions and 0 deletions

View File

@ -148,4 +148,10 @@ export default Model.extend({
return classMap[this.get('status')] || 'is-dark';
}),
payload: attr('string'),
decodedPayload: computed('payload', function() {
// Lazily decode the base64 encoded payload
return window.atob(this.get('payload') || '');
}),
});