From 1dc8a313d6d3e37f819e8a56cd30c3c9e7314892 Mon Sep 17 00:00:00 2001 From: Inhji Date: Mon, 13 Mar 2023 05:59:29 +0100 Subject: [PATCH] add preview button to admin note page --- lib/chiya_web/live/note_show_live.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/chiya_web/live/note_show_live.ex b/lib/chiya_web/live/note_show_live.ex index c83fd57..da953fd 100644 --- a/lib/chiya_web/live/note_show_live.ex +++ b/lib/chiya_web/live/note_show_live.ex @@ -16,6 +16,9 @@ defmodule ChiyaWeb.NoteShowLive do <.link href={~p"/admin/notes/#{@note}/edit"}> <.button>Edit note + <.link href={~p"/n/#{@note.slug}"}> + <.button>Preview note +