mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02: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
|
@ -62,11 +62,11 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { computed, defineComponent, onMounted, ref, useContext } from "@nuxtjs/composition-api";
|
||||
import { useDark } from "@vueuse/core";
|
||||
import AppHeader from "@/components/Layout/AppHeader.vue";
|
||||
import AppSidebar from "@/components/Layout/AppSidebar.vue";
|
||||
import TheSnackbar from "@/components/Layout/TheSnackbar.vue";
|
||||
import { useCookbooks } from "~/composables/use-group-cookbooks";
|
||||
import { useToggleDarkMode } from "~/composables/use-utils";
|
||||
|
||||
export default defineComponent({
|
||||
components: { AppHeader, AppSidebar, TheSnackbar },
|
||||
|
@ -77,13 +77,7 @@ export default defineComponent({
|
|||
|
||||
const isAdmin = computed(() => $auth.user?.admin);
|
||||
|
||||
const isDark = useDark();
|
||||
|
||||
function toggleDark() {
|
||||
isDark.value = !$vuetify.theme.dark;
|
||||
$vuetify.theme.dark = !$vuetify.theme.dark;
|
||||
console.log("toggleDark");
|
||||
}
|
||||
const toggleDark = useToggleDarkMode();
|
||||
|
||||
const sidebar = ref<boolean | null>(null);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue