A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: disable input sanitization on color/tag rename (#2274)
Abdulrehman-Jafera12749eb828a
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsxindex c2e8177b7..ecf81b082 100644--- a/apps/web/src/common/dialog-controller.tsx+++ b/apps/web/src/common/dialog-controller.tsx@@ -211,9 +211,8 @@ export function showError(title: string, message: string) {export function showMultiDeleteConfirmation(length: number) {return confirm({title: `Delete ${length} items?`,- message: `These items will be **kept in your Trash for ${- db.settings?.getTrashCleanupInterval() || 7- } days** after which they will be permanently deleted.`,+ message: `These items will be **kept in your Trash for ${db.settings?.getTrashCleanupInterval() || 7+ } days** after which they will be permanently deleted.`,positiveButtonText: "Yes",negativeButtonText: "No"});diff --git a/packages/core/collections/tags.js b/packages/core/collections/tags.jsindex eb463dd36..71049c257 100644--- a/packages/core/collections/tags.js+++ b/packages/core/collections/tags.js@@ -79,9 +79,6 @@ export default class Tags extends Collection {return;}- newName = this.sanitize(newName);- if (!newName) throw new Error("Tag title cannot be empty.");-await this._db.settings.setAlias(tagId, newName);await this._collection.addItem({ ...tag, alias: newName });}