Fix for theme switching.

Closes #4175
Closes #4177
This commit is contained in:
Kavin
2026-03-28 11:41:16 +05:30
parent 9a05e3991e
commit 2386d728e6
4 changed files with 10 additions and 8 deletions

View File

@@ -147,7 +147,6 @@ import ClearButton from "./ui/ClearButton.vue";
import hotkeys from "hotkeys-js";
import { fetchJson, authApiUrl, getAuthToken } from "@/composables/useApi.js";
import { getPreferenceBoolean, getPreferenceString } from "@/composables/usePreferences.js";
import { getHomePage } from "@/composables/useMisc.js";
const router = useRouter();
const route = useRoute();
@@ -158,9 +157,10 @@ const searchSuggestions = ref(null);
const searchText = ref("");
const suggestionsVisible = ref(false);
const showTopNav = ref(false);
const homePagePath = ref(import.meta.env.BASE_URL);
const registrationDisabled = ref(false);
const homePagePath = import.meta.env.BASE_URL;
const shouldShowLogin = computed(() => {
return getAuthToken() == null;
});
@@ -253,7 +253,6 @@ onMounted(() => {
fetchAuthConfig();
updateSearchTextFromURLSearchParams();
focusOnSearchBar();
homePagePath.value = getHomePage();
});
</script>