diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-04 15:59:57 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-04 15:59:57 +0300 |
commit | e13baff004810fba3b7fd6eeffc3e4de5af952a1 (patch) | |
tree | de8ca2bab58ac104d530982bf157617245e98cf0 /app/serializers | |
parent | 2090f2d0d6e2f034f631dbbe3c7e9cf48f9135d2 (diff) |
Renders empty states in the Vue app in Job page
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/detailed_status_entity.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/serializers/detailed_status_entity.rb b/app/serializers/detailed_status_entity.rb index c772c807f76..da994d78286 100644 --- a/app/serializers/detailed_status_entity.rb +++ b/app/serializers/detailed_status_entity.rb @@ -10,7 +10,12 @@ class DetailedStatusEntity < Grape::Entity expose :illustration do |status| begin - status.illustration + illustration = { + image: ActionController::Base.helpers.image_path(status.illustration[:image]) + } + illustration = status.illustration.merge(illustration) + + illustration rescue NotImplementedError # ignored end @@ -25,5 +30,6 @@ class DetailedStatusEntity < Grape::Entity expose :action_title, as: :title expose :action_path, as: :path expose :action_method, as: :method + expose :action_button_title, as: :button_title end end |