From c0b836f2a4c64091bc978e20595d02e1b348181b Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 4 Aug 2023 22:31:48 +0200 Subject: [PATCH] feat: disable delete for Homarr default config --- src/pages/manage/boards/index.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/pages/manage/boards/index.tsx b/src/pages/manage/boards/index.tsx index 0579b9f46..69e199824 100644 --- a/src/pages/manage/boards/index.tsx +++ b/src/pages/manage/boards/index.tsx @@ -140,7 +140,7 @@ const BoardsPage = () => { > View dashboard - + @@ -155,8 +155,9 @@ const BoardsPage = () => { }); }} > - Set as your default board + Set as your default board + { modals.openContextModal({ @@ -173,10 +174,16 @@ const BoardsPage = () => { }, }); }} + disabled={board.name === 'default'} icon={} color="red" > - Permanently delete + Permanently delete + {board.name === 'default' && ( + + Deletion disabled, because older Homarr components still rely on this. + + )}