clean code
This commit is contained in:
@@ -1224,7 +1224,7 @@
|
||||
<thead class="bg-gray-100">
|
||||
<tr>
|
||||
{#each columns as col}
|
||||
{#if col.key === "name"}
|
||||
{#if col.key === "issue_name"}
|
||||
<th
|
||||
class="sticky left-0 px-4 py-3 text-left font-semibold text-gray-700 uppercase tracking-wider whitespace-nowrap"
|
||||
style="background-color: #f0f8ff; z-index: 10;"
|
||||
@@ -1245,15 +1245,24 @@
|
||||
{#each paginatedRows as row}
|
||||
<tr class="hover:bg-gray-50 transition">
|
||||
{#each columns as col}
|
||||
{#if col.key === "requested_date" || col.key === "po_due" || col.key === "updated_at"}
|
||||
<td class="px-4 py-2 text-gray-500">
|
||||
{#if row[col.key]}
|
||||
{new Date(row[col.key]).toLocaleString()}
|
||||
{:else}
|
||||
—
|
||||
{/if}
|
||||
{#if col.key === "requested_date" || col.key === "po_due" || col.key === "updated_at"}
|
||||
<td class="px-4 py-2 text-gray-500">
|
||||
{#if row[col.key]}
|
||||
{new Date(row[col.key]).toLocaleString()}
|
||||
{:else}
|
||||
—
|
||||
{/if}
|
||||
</td>
|
||||
{:else if col.key === "po_remark"}
|
||||
<td class="px-4 py-2 text-gray-700 max-w-xs whitespace-normal align-top break-words">
|
||||
{row[col.key] || "—"}
|
||||
</td>
|
||||
{:else if col.key === "prepared"}
|
||||
{:else if col.key === "issue_name"}
|
||||
<td class="sticky left-0 px-4 py-2 font-medium text-blue-600 max-w-xs whitespace-normal align-top break-words"
|
||||
style="background-color: #f0f8ff; cursor: pointer;">
|
||||
{row.issue_name || "—"}
|
||||
</td>
|
||||
{:else if col.key === "prepared"}
|
||||
<td class="px-4 py-2 text-center">
|
||||
<button
|
||||
class="bg-blue-600 text-white text-xs px-3 py-1.5 rounded hover:bg-blue-700 disabled:bg-gray-400 disabled:cursor-not-allowed"
|
||||
|
||||
Reference in New Issue
Block a user