Skip to content

Commit 125f26b

Browse files
kushthedudeabhinavk96
authored andcommitted
Make use of URL field in event model to preview the event (#2919)
1 parent 90daa57 commit 125f26b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/templates/events/view.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="twelve wide column {{unless device.isMobile 'right aligned'}}">
2121
{{#if device.isMobile}}
2222
<div class="ui icon fluid buttons">
23-
<a href="{{href-to 'public' model.id}}" class="ui button" data-tooltip={{t 'Preview'}} data-position="top left">
23+
<a href="{{model.url}}" class="ui button" data-tooltip={{t 'Preview'}} data-position="top left">
2424
<i class="unhide icon"></i>
2525
</a>
2626
<button class="ui button" {{action 'togglePublishState'}} data-tooltip="{{if (eq model.state 'published') 'Unpublish' 'Publish'}}" data-position="top left">
@@ -32,7 +32,7 @@
3232
<button class="ui red button" {{action 'openDeleteEventModal'}} data-tooltip={{t 'Delete'}} data-position="top left"><i class="trash icon"></i></button>
3333
</div>
3434
{{else}}
35-
<a href="{{href-to 'public' model.id}}" class="ui button labeled icon small">
35+
<a href="{{model.url}}" class="ui button labeled icon small">
3636
<i class="unhide icon"></i>
3737
{{t 'Preview'}}
3838
</a>

0 commit comments

Comments
 (0)