Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
savonije committed Oct 20, 2024
1 parent 15d9754 commit 4058764
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/AddTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const isModalVisible = ref(false)
</script>

<template>
<button type="submit" class="button" @click="isModalVisible = true">Add movie</button>
<button type="button" class="button" @click="isModalVisible = true">Add movie</button>

<ModalAddTitle v-if="isModalVisible" v-model="isModalVisible" />
</template>
2 changes: 1 addition & 1 deletion src/components/DeleteTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const props = defineProps<Movie>()

<template>
<button
type="submit"
type="button"
class="text-red font-bold opacity-50 hover:underline underline-offset-2"
@click="isModalVisible = true"
>
Expand Down
2 changes: 1 addition & 1 deletion src/stores/storeAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const useStoreAuth = defineStore('storeAuth', {
console.log('Logout user')
})
.catch((error) => {
console.log('Logout error')
console.log('Logout error ' + error)
})
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/views/DetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ onMounted(() => {
<a
:href="`https://www.imdb.com/title/${movieDetails.imdbID}`"
target="_blank"
rel="noopener"
class="text-gray-200 text-xs"
>
See IMDB page
Expand Down Expand Up @@ -159,7 +158,7 @@ onMounted(() => {
</DefaultLayout>
</template>

<style lang="scss" scoped>
<style scoped>
.score {
@apply h-8 w-8 bg-gray-800 flex items-center justify-center text-lg font-bold text-white;
}
Expand Down
1 change: 0 additions & 1 deletion src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">
import ModalAddTitle from '@/components/ModalAddTitle.vue'
import ShowTitles from '@/components/ShowTitles.vue'
import { useStoreDVDs } from '@/stores/storeDVDs'
import { onMounted } from 'vue'
Expand Down

0 comments on commit 4058764

Please sign in to comment.