From d84475ffe933eaa1eff2e4847efade51e3376526 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sun, 2 May 2021 15:54:27 +0200 Subject: [PATCH] changelog --- CHANGELOG.md | 20 ++++++++++++++++++++ client/src/routes/note/[id].svelte | 8 ++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..74d3646 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.1] - 2021-05-02 + +### Added + +- Dark mode support + +### Fixed + +- Don't reload data on wrong password + +## [1.0.0] - 2021-05-02 + +Initial release diff --git a/client/src/routes/note/[id].svelte b/client/src/routes/note/[id].svelte index 02d4b82..734f7c8 100644 --- a/client/src/routes/note/[id].svelte +++ b/client/src/routes/note/[id].svelte @@ -40,7 +40,7 @@ }) async function show() { - const data = await get(id) + const data = note || (await get(id)) // Don't get the content twice on wrong password. if (needPassword) { try { const key = await getKeyFromString(password) @@ -74,7 +74,11 @@ {#if error}
-

wrong password. could not decipher.

+

+ wrong password. could not decipher. +
+ note already destroyed. try again without reloading the page. +

{/if} {/if}