From 1bb258b16a4c0227baa7bc68707a7acfb0f4a95d Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 3 Dec 2023 19:09:15 +0100 Subject: [PATCH] add: back button in header Closes transfem-org/Sharkey#196 --- .../frontend/src/components/MkPageWindow.vue | 1 + .../src/components/global/MkPageHeader.vue | 19 ++++++++++++++++++- packages/frontend/src/pages/note.vue | 2 +- packages/frontend/src/pages/page.vue | 2 +- packages/frontend/src/pages/user/index.vue | 2 +- 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkPageWindow.vue b/packages/frontend/src/components/MkPageWindow.vue index b22cd683ff..163cba5e3c 100644 --- a/packages/frontend/src/components/MkPageWindow.vue +++ b/packages/frontend/src/components/MkPageWindow.vue @@ -99,6 +99,7 @@ provideMetadataReceiver((info) => { provide('shouldOmitHeaderTitle', true); provide('shouldHeaderThin', true); provide('forceSpacerMin', true); +provide('shouldBackButton', false); const contextmenu = $computed(() => ([{ icon: 'ph-eject ph-bold ph-lg', diff --git a/packages/frontend/src/components/global/MkPageHeader.vue b/packages/frontend/src/components/global/MkPageHeader.vue index 2134e9fad3..56fe920252 100644 --- a/packages/frontend/src/components/global/MkPageHeader.vue +++ b/packages/frontend/src/components/global/MkPageHeader.vue @@ -9,9 +9,18 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
+ +