From 6db386a4552fb4dfb16033153bc336a6992c8279 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 26 Sep 2020 08:43:05 -0700 Subject: [PATCH] Fix issue with delete. --- components/common/Button.module.css | 7 +++++-- lib/url.js | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/components/common/Button.module.css b/components/common/Button.module.css index f4fd8546..b911095f 100644 --- a/components/common/Button.module.css +++ b/components/common/Button.module.css @@ -50,7 +50,8 @@ background: var(--gray800); } -.danger { +.danger, +.danger:active { color: var(--gray50); background: var(--red500); } @@ -59,7 +60,9 @@ background: var(--red400); } -.light { +.light, +.light:active { + color: var(--gray900); background: transparent; } diff --git a/lib/url.js b/lib/url.js index 49acedf7..500736f9 100644 --- a/lib/url.js +++ b/lib/url.js @@ -14,7 +14,7 @@ export function getDomainName(str) { } } -export function getQueryString(params) { +export function getQueryString(params = {}) { const map = Object.keys(params).reduce((arr, key) => { if (params[key] !== undefined) { return arr.concat(`${key}=${encodeURIComponent(params[key])}`); diff --git a/package.json b/package.json index ed4e470d..107d7dab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "umami", - "version": "0.55.0", + "version": "0.56.0", "description": "A simple, fast, website analytics alternative to Google Analytics. ", "author": "Mike Cao ", "license": "MIT",