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