mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-14 17:13:54 -07:00
Fix/multiple bug reports (#1002)
* fix type issues for #999 * fix regression #995 * remove error from frontend and log error #996 * cleanup darkmode on login page * keep primary color bg
This commit is contained in:
parent
6ccffce320
commit
ccfaa02b03
9 changed files with 102 additions and 57 deletions
|
@ -1,4 +1,18 @@
|
|||
import { IncomingMessage } from "connect";
|
||||
import { useDark } from "@vueuse/core";
|
||||
import { useContext } from "@nuxtjs/composition-api";
|
||||
|
||||
export const useToggleDarkMode = () => {
|
||||
const isDark = useDark();
|
||||
const { $vuetify } = useContext();
|
||||
|
||||
function toggleDark() {
|
||||
isDark.value = !$vuetify.theme.dark;
|
||||
$vuetify.theme.dark = !$vuetify.theme.dark;
|
||||
}
|
||||
|
||||
return toggleDark;
|
||||
};
|
||||
|
||||
export const useAsyncKey = function () {
|
||||
return String(Date.now());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue