changelog

This commit is contained in:
cupcakearmy 2021-05-02 15:54:27 +02:00
parent 8e6ef5e2f6
commit d84475ffe9
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
2 changed files with 26 additions and 2 deletions

20
CHANGELOG.md Normal file
View File

@ -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

View File

@ -40,7 +40,7 @@
}) })
async function show() { 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) { if (needPassword) {
try { try {
const key = await getKeyFromString(password) const key = await getKeyFromString(password)
@ -74,7 +74,11 @@
<Button type="submit">show note</Button> <Button type="submit">show note</Button>
{#if error} {#if error}
<br /> <br />
<p class="error-text">wrong password. could not decipher.</p> <p class="error-text">
wrong password. could not decipher.
<br />
note already destroyed. try again without reloading the page.
</p>
{/if} {/if}
</form> </form>
{/if} {/if}