add preview button to admin note page
This commit is contained in:
parent
917c97ad61
commit
1dc8a313d6
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ defmodule ChiyaWeb.NoteShowLive do
|
|||
<.link href={~p"/admin/notes/#{@note}/edit"}>
|
||||
<.button>Edit note</.button>
|
||||
</.link>
|
||||
<.link href={~p"/n/#{@note.slug}"}>
|
||||
<.button>Preview note</.button>
|
||||
</.link>
|
||||
</:actions>
|
||||
</.header>
|
||||
|
||||
|
|
Loading…
Reference in a new issue