Skip to content

Commit 2f1056d

Browse files
committed
change report default to public
1 parent 6e226cd commit 2f1056d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

resources/js/Components/Common/Report/ReportCreateModal.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const props = defineProps<{
4040
const report = ref({
4141
name: '',
4242
description: '',
43-
is_public: false,
43+
is_public: true,
4444
public_until: null,
4545
});
4646
@@ -94,7 +94,7 @@ async function submit() {
9494
</div>
9595
<InputLabel value="Visibility" />
9696
<div class="flex items-center space-x-12">
97-
<div class="flex items-center space-x-2 px-2 py-3">
97+
<div class="flex items-center space-x-3 px-2 py-3">
9898
<Checkbox
9999
v-model:checked="report.is_public"
100100
id="is_public"></Checkbox>
@@ -103,7 +103,12 @@ async function submit() {
103103
<div
104104
v-if="report.is_public"
105105
class="flex items-center space-x-4">
106-
<InputLabel for="public_until" value="Expires at" />
106+
<div>
107+
<InputLabel for="public_until" value="Expires at" />
108+
<div class="text-text-tertiary font-medium">
109+
(optional)
110+
</div>
111+
</div>
107112
<DatePicker id="public_until"></DatePicker>
108113
</div>
109114
</div>

0 commit comments

Comments
 (0)