@@ -895,7 +895,7 @@ export default function Sidebar() {
895895 const api = readNativeApi ( ) ;
896896 if ( ! api ) return ;
897897 const clicked = await api . contextMenu . show (
898- [ { id : "delete" , label : "Delete " , destructive : true } ] ,
898+ [ { id : "delete" , label : "Remove project " , destructive : true } ] ,
899899 position ,
900900 ) ;
901901 if ( clicked !== "delete" ) return ;
@@ -908,14 +908,12 @@ export default function Sidebar() {
908908 toastManager . add ( {
909909 type : "warning" ,
910910 title : "Project is not empty" ,
911- description : "Delete all threads in this project before deleting it." ,
911+ description : "Delete all threads in this project before removing it." ,
912912 } ) ;
913913 return ;
914914 }
915915
916- const confirmed = await api . dialogs . confirm (
917- [ `Delete project "${ project . name } "?` , "This action cannot be undone." ] . join ( "\n" ) ,
918- ) ;
916+ const confirmed = await api . dialogs . confirm ( `Remove project "${ project . name } "?` ) ;
919917 if ( ! confirmed ) return ;
920918
921919 try {
@@ -930,11 +928,11 @@ export default function Sidebar() {
930928 projectId,
931929 } ) ;
932930 } catch ( error ) {
933- const message = error instanceof Error ? error . message : "Unknown error deleting project." ;
931+ const message = error instanceof Error ? error . message : "Unknown error removing project." ;
934932 console . error ( "Failed to remove project" , { projectId, error } ) ;
935933 toastManager . add ( {
936934 type : "error" ,
937- title : `Failed to delete "${ project . name } "` ,
935+ title : `Failed to remove "${ project . name } "` ,
938936 description : message ,
939937 } ) ;
940938 }
0 commit comments