Skip to content

Commit

Permalink
removed compostable again so it works
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Bauroth committed Feb 13, 2024
1 parent 449dde5 commit a46eb01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import LoginState from "~/utils/authorization/LoginState";
import {loginStateKey} from "~/utils/keys";
import SessionResponse = PouchDB.Authentication.SessionResponse;
import {useSelectedEvent} from "~/composables/useSelectedEvent";
const {usernameState, sessionState, logout}: {
logout: () => Promise<void>;
// noinspection TypeScriptUnresolvedReference
Expand All @@ -17,7 +15,7 @@ const {usernameState, sessionState, logout}: {
const events = ['2024test', '2024trial']
let selectedEvent = useSelectedEvent()
let selectedEvent = eventOptions[0]
let props = defineProps({
scoutMode: {
Expand Down
3 changes: 1 addition & 2 deletions pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import "../utils/authorization/Authorizer";
import {couchDBBaseURL} from "~/utils/URIs"
import {loginStateKey} from "~/utils/keys";
import {useSelectedEvent} from "~/composables/useSelectedEvent";
import {eventOptions} from "~/utils/eventOptions";
const usersDB = new PouchDB(`${couchDBBaseURL}/_users`, {skip_setup: true});
Expand All @@ -11,7 +10,7 @@ const usersDB = new PouchDB(`${couchDBBaseURL}/_users`, {skip_setup: true});
let error = ref(false)
const events = eventOptions
const selectedEvent = useSelectedEvent()
const selectedEvent = eventOptions[0]
const {updateUsernameState}: { updateUsernameState: () => void } = inject(loginStateKey)!
Expand Down
3 changes: 1 addition & 2 deletions pages/matches.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<script setup lang="ts">
import databases from "~/utils/databases"
import {useSelectedEvent} from "~/composables/useSelectedEvent";
const { scoutingData } = databases.locals
const sortBy = ref([{ key: 'teamNumber', order: 'asc' }])
const currentEvent = useSelectedEvent()
const currentEvent = eventOptions[0]
let db = scoutingData
Expand Down
4 changes: 2 additions & 2 deletions pages/teams.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ let options = {
}
const events = eventOptions
const currentEvent = useSelectedEvent()
const currentEvent = eventOptions[0]
const currentEventFilter = { id: 2, content: 'event: ' + currentEvent.value, custom: false }
const currentEventFilter = { id: 2, content: 'event: ' + currentEvent, custom: false }
const selectedFilters = ref<Array<{ id: number, content: string, custom: boolean}>>([currentEventFilter])
watch(selectedFilters, () => {
tableSetup()
Expand Down

0 comments on commit a46eb01

Please sign in to comment.