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
- {
+ if (store.isHomePage(store.activePage)) {
+ store.unsetHomePage();
+ } else {
+ store.setHomePage(store.activePage?.route as string);
+ }
+ }
">
-
-
+ {{ store.isHomePage(store.activePage) ? "Unset Homepage" : "Set As Homepage" }}
+
{
return [homeOption, ...options];
});
-
-const handleClick = () => {
- console.log("clicked");
-};