penamaban url drive
This commit is contained in:
@@ -151,6 +151,8 @@
|
||||
{ key: "issue_type", title: "Issue Type" },
|
||||
{ key: "move_issue", title: "Move Issue" },
|
||||
{ key: "issue_related_image", title: "Issue Related Image" },
|
||||
{ key: "url_drive", title: "URL Drive" },
|
||||
{ key: "description_of_the_issue", title: "Description of The Issue" },
|
||||
{ key: "issue_source", title: "Issue Source" },
|
||||
{ key: "reported_name", title: "Reported By" },
|
||||
{ key: "inputed_name", title: "Input By" },
|
||||
@@ -222,6 +224,7 @@
|
||||
description_of_the_issue: string;
|
||||
reported_date: string;
|
||||
issue_related_image: string;
|
||||
url_drive: string;
|
||||
issue_source: string;
|
||||
reported_by: string;
|
||||
input_by: string;
|
||||
@@ -241,6 +244,7 @@
|
||||
description_of_the_issue: string;
|
||||
reported_date: string;
|
||||
issue_related_image: string;
|
||||
url_drive?: string; // Optional, if not always present
|
||||
issue_source: string;
|
||||
reported_by: string;
|
||||
input_by: string;
|
||||
@@ -452,6 +456,7 @@
|
||||
issue_related_image: newIssue.issue_related_image
|
||||
? newIssue.issue_related_image
|
||||
: (formData.get("issue_related_image") as string),
|
||||
url_drive: formData.get("url_drive") as string,
|
||||
issue_source: formData.get("issue_source") as string,
|
||||
reported_by: formData.get("reported_by") as string,
|
||||
input_by: formData.get("input_by") as string,
|
||||
@@ -944,6 +949,19 @@
|
||||
No Picture
|
||||
{/if}
|
||||
</td>
|
||||
{:else if col.key === "url_drive"}
|
||||
<td class="px-4 py-2">
|
||||
{#if typeof row[col.key as keyof Issue] === "string" && row[col.key as keyof Issue]}
|
||||
<a
|
||||
href={row[col.key as keyof Issue] as string}
|
||||
target="_blank"
|
||||
class="text-blue-600 hover:underline"
|
||||
>View Drive Link</a
|
||||
>
|
||||
{:else}
|
||||
No Drive Link
|
||||
{/if}
|
||||
</td>
|
||||
{:else if col.key === "reported_date"}
|
||||
<td class="px-4 py-2">
|
||||
{typeof row[col.key as keyof Issue] ===
|
||||
|
||||
Reference in New Issue
Block a user