Skip to content

Commit

Permalink
Fix default settings in bulk tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
GeniJaho committed Mar 12, 2024
1 parent 0a31b94 commit be0acc8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/js/Pages/Photos/Partials/BulkTag.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import SecondaryButton from "@/Components/SecondaryButton.vue";
import {useForm} from "@inertiajs/vue3";
import {useForm, usePage} from "@inertiajs/vue3";
import {ref} from "vue";
import PrimaryButton from "@/Components/PrimaryButton.vue";
import TagBox from "@/Components/TagBox.vue";
Expand All @@ -14,6 +14,7 @@ const props = defineProps({
tags: Object,
});
const page = usePage();
const selectedItem = ref(null);
const showModal = ref(false);
const form = useForm({
Expand All @@ -27,9 +28,9 @@ const addItem = () => {
id: selectedItem.value.id,
name: selectedItem.value.name,
tag_ids: [],
picked_up: false,
recycled: false,
deposit: false,
picked_up: page.props.auth.user.settings.picked_up_by_default || false,
recycled: page.props.auth.user.settings.recycled_by_default || false,
deposit: page.props.auth.user.settings.deposit_by_default || false,
quantity: 1,
});
Expand Down

0 comments on commit be0acc8

Please sign in to comment.