feat: reports #38

Merged
al4423 merged 3 commits from feat/reports into master 2025-06-10 23:11:13 +00:00
7 changed files with 223 additions and 2 deletions
Showing only changes of commit 4d8cffc726 - Show all commits

View File

@@ -15,7 +15,7 @@
});
async function uploadReport() {
const { data: studySpaceInsert, error: reportUploadError } = await supabase
const { error: reportUploadError } = await supabase
.from("reports")
.insert(reportData)
.select()
@@ -53,8 +53,9 @@
rows={2}
bind:value={reportData.content}
/>
<button disabled={!reportData.type || reportData.content?.length === 0} class="submit"
>Submit</button
<button
disabled={!reportData.type || reportData.content?.length === 0 || uploading}
class="submit">Submit</button
>
<button type="button" class="exit" aria-label="exit" onclick={hideFunc}
><img src={crossUrl} alt="exit" /></button