Skip to content

Commit

Permalink
general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Dec 30, 2023
1 parent f2fce6b commit 9153027
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions webclient/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import FeedbackModal from "@/components/feedback/FeedbackModal.vue";
import AppSearchBar from "@/components/AppSearchBar.vue";
import AppNavHeader from "@/components/AppNavHeader.vue";
import Toast from "@/components/Toast.vue";
import Modal from "@/components/Modal.vue";
import { ref } from "vue";
const global = useGlobalStore();
const modelOpen = ref(false);
</script>

<template>
Expand All @@ -19,15 +16,15 @@ const modelOpen = ref(false);

<!-- Page content container -->
<div
class="mx-auto mt-16 mb-16 min-h-[calc(100vh-400px)] max-w-4xl transition-opacity"
id="pageContent"
class="mx-auto mb-16 mt-16 min-h-[calc(100vh-400px)] max-w-4xl transition-opacity"
:class="{ 'opacity-70': global.search_focused }"
>
<div id="errorToasts" class="mx-5 grid gap-2">
<Toast v-if="global.error_message" :msg="global.error_message" level="error" />
<div v-if="global.error_message" class="mx-5 pt-5">
<Toast :msg="global.error_message" level="error" />
</div>
<RouterView class="mx-5" />
</div>
<Modal v-model:open="modelOpen" title="awsome title goes here"> less awsome body </Modal>

<Footer />
<FeedbackModal v-if="global.feedback.open" />
Expand Down
2 changes: 1 addition & 1 deletion webclient/src/modules/outdatedBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if (shouldWarnForOutdatedBrowser()) {
If you need assistance with updating your browser, please refer to your browser's official website or your IT department for guidance.
Thank you for your understanding, and we look forward to providing you with an enhanced browsing experience once your browser is up-to-date.
</p>`;
document.getElementById("errorToasts")?.appendChild(error);
document.getElementById("pageContent")?.appendChild(error);
localStorage.setItem("lastOutdatedBrowserWarningTime", new Date().getTime().toString());
}
export {};

0 comments on commit 9153027

Please sign in to comment.