Skip to content

Commit

Permalink
Merge pull request #18 from davidroll20/christmas-day-patch
Browse files Browse the repository at this point in the history
Adjusted modal size and hopefully fixed login credentials
  • Loading branch information
davidroll20 authored Dec 25, 2024
2 parents 2cfb95c + 5b698d0 commit 5077506
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/components/MyModal/MyModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ const contentClasses = computed(() => ({
overflow: hidden;
@media (max-width: 1000px) {
max-width: 50dvw;
}
@media (max-width: 500px) {
max-width: 80dvw;
}
h2 {
margin: 0;
}
Expand Down
4 changes: 3 additions & 1 deletion src/stores/loginStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ export const useLoginStore = defineStore('login', () => {
const errorMessage = ref('');
const user: Ref<User | undefined> = ref();

const currentUser = useCurrentUser();

const isSignedIn = computed(() => {
// return user.value !== undefined;
return useCurrentUser() != null;
return currentUser.value != null;
});

const validatePw = () => {
Expand Down

0 comments on commit 5077506

Please sign in to comment.