From fdad3693be5d2fb4798984a60ed5cbbcdd9d5982 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Fri, 20 Dec 2024 00:48:01 +0530 Subject: [PATCH] fix: "Set As Homepage" functionality --- .../src/components/Settings/PageGeneral.vue | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/Settings/PageGeneral.vue b/frontend/src/components/Settings/PageGeneral.vue index 44da8ad6..1e303dcb 100644 --- a/frontend/src/components/Settings/PageGeneral.vue +++ b/frontend/src/components/Settings/PageGeneral.vue @@ -49,16 +49,12 @@ : "Draft" }} - - - {{ store.activePage?.published ? "Unpublish" : "Publish" }} - - + + + {{ store.activePage?.published ? "Unpublish" : "Publish" }} + @@ -99,16 +95,19 @@ Homepage

Set current page as Homepage

- - - + {{ store.isHomePage(store.activePage) ? "Unset Homepage" : "Set As Homepage" }} +
{ return [homeOption, ...options]; }); - -const handleClick = () => { - console.log("clicked"); -};