Skip to content

Commit

Permalink
change report default to public
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Dec 17, 2024
1 parent 6e226cd commit 2f1056d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions resources/js/Components/Common/Report/ReportCreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const props = defineProps<{
const report = ref({
name: '',
description: '',
is_public: false,
is_public: true,
public_until: null,
});
Expand Down Expand Up @@ -94,7 +94,7 @@ async function submit() {
</div>
<InputLabel value="Visibility" />
<div class="flex items-center space-x-12">
<div class="flex items-center space-x-2 px-2 py-3">
<div class="flex items-center space-x-3 px-2 py-3">
<Checkbox
v-model:checked="report.is_public"
id="is_public"></Checkbox>
Expand All @@ -103,7 +103,12 @@ async function submit() {
<div
v-if="report.is_public"
class="flex items-center space-x-4">
<InputLabel for="public_until" value="Expires at" />
<div>
<InputLabel for="public_until" value="Expires at" />
<div class="text-text-tertiary font-medium">
(optional)
</div>
</div>
<DatePicker id="public_until"></DatePicker>
</div>
</div>
Expand Down

0 comments on commit 2f1056d

Please sign in to comment.