TagSpaces is an offline, open source, document manager with tagging support
fix: showing delete history item button
Ilian Sapundshiev67180fa3885a
diff --git a/app/components/RenderHistory.tsx b/app/components/RenderHistory.tsxindex 21452bcc4..2e2f1acb9 100644--- a/app/components/RenderHistory.tsx+++ b/app/components/RenderHistory.tsx@@ -1,3 +1,21 @@+/**+ * TagSpaces - universal file and folder organizer+ * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License (version 3) as+ * published by the Free Software Foundation.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ *+ */+import { TS } from '-/tagspaces.namespace';import Grid from '@mui/material/Grid';import React from 'react';@@ -16,23 +34,6 @@ import { RemoveIcon, HistoryIcon } from '-/components/CommonIcons';import { dataTidFormat } from '-/services/test';import { useTranslation } from 'react-i18next';-/**- * TagSpaces - universal file and folder organizer- * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License (version 3) as- * published by the Free Software Foundation.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- *- */interface Props {key: string;items: Array<TS.HistoryItem> | Array<TS.BookmarkItem>;@@ -55,7 +56,7 @@ function RenderHistory(props: Props) {openLocationById,openEntry,maxItems,- showDelete+ showDelete = true} = props;return (<>@@ -130,7 +131,7 @@ function RenderHistory(props: Props) {Pro.history.delItem(item, key);update();}}- data-tid="editSearchTID"+ data-tid="deleteHistoryItemTID"size="small"><RemoveIcon />