Skip to content

Commit

Permalink
Make use of URL field in event model to preview the event (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
kushthedude authored and abhinavk96 committed May 15, 2019
1 parent 90daa57 commit 125f26b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/events/view.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="twelve wide column {{unless device.isMobile 'right aligned'}}">
{{#if device.isMobile}}
<div class="ui icon fluid buttons">
<a href="{{href-to 'public' model.id}}" class="ui button" data-tooltip={{t 'Preview'}} data-position="top left">
<a href="{{model.url}}" class="ui button" data-tooltip={{t 'Preview'}} data-position="top left">
<i class="unhide icon"></i>
</a>
<button class="ui button" {{action 'togglePublishState'}} data-tooltip="{{if (eq model.state 'published') 'Unpublish' 'Publish'}}" data-position="top left">
Expand All @@ -32,7 +32,7 @@
<button class="ui red button" {{action 'openDeleteEventModal'}} data-tooltip={{t 'Delete'}} data-position="top left"><i class="trash icon"></i></button>
</div>
{{else}}
<a href="{{href-to 'public' model.id}}" class="ui button labeled icon small">
<a href="{{model.url}}" class="ui button labeled icon small">
<i class="unhide icon"></i>
{{t 'Preview'}}
</a>
Expand Down

0 comments on commit 125f26b

Please sign in to comment.