diff --git a/app/Http/Resources/V1/Report/DetailedWithDataReportResource.php b/app/Http/Resources/V1/Report/DetailedWithDataReportResource.php index 100ff7e3..1b6449f3 100644 --- a/app/Http/Resources/V1/Report/DetailedWithDataReportResource.php +++ b/app/Http/Resources/V1/Report/DetailedWithDataReportResource.php @@ -90,12 +90,14 @@ class DetailedWithDataReportResource extends BaseResource * grouped_data: null|array(); -const report = ref({ +const report = ref({ name: '', description: '', is_public: false, public_until: null, - properties: {}, }); const { handleApiRequestNotifications } = useNotificationsStore(); async function submit() { - report.value.properties = { ...props.properties }; await handleApiRequestNotifications( - () => createReportMutation.mutateAsync(report.value), + () => + createReportMutation.mutateAsync({ + ...report.value, + properties: { ...props.properties }, + }), 'Success', 'Error', () => { @@ -59,7 +61,6 @@ async function submit() { description: '', is_public: false, public_until: null, - properties: {}, }; show.value = false; } diff --git a/resources/js/Components/Common/Report/ReportSaveButton.vue b/resources/js/Components/Common/Report/ReportSaveButton.vue new file mode 100644 index 00000000..7f4ab828 --- /dev/null +++ b/resources/js/Components/Common/Report/ReportSaveButton.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/resources/js/Components/Common/Reporting/ReportingExportButton.vue b/resources/js/Components/Common/Reporting/ReportingExportButton.vue index 73a2be8e..464cbcd0 100644 --- a/resources/js/Components/Common/Reporting/ReportingExportButton.vue +++ b/resources/js/Components/Common/Reporting/ReportingExportButton.vue @@ -1,15 +1,22 @@ @@ -48,7 +41,7 @@ const expanded = ref(false); {{ entry.grouped_data?.length }} - {{ getNameForKey(entry.key) }} + {{ entry.description }}
@@ -65,8 +58,7 @@ const expanded = ref(false);
diff --git a/resources/js/Components/Common/UpgradeBadge.vue b/resources/js/Components/Common/UpgradeBadge.vue index d5f18454..106ed215 100644 --- a/resources/js/Components/Common/UpgradeBadge.vue +++ b/resources/js/Components/Common/UpgradeBadge.vue @@ -6,7 +6,10 @@ const showUpgradeModal = ref(false);