add preview button to admin note page

This commit is contained in:
Inhji 2023-03-13 05:59:29 +01:00
parent 917c97ad61
commit 1dc8a313d6

View file

@ -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>