[backend/razor] More exception details improvements for queue dashboard views

This commit is contained in:
Laura Hausmann 2024-06-21 19:58:05 +02:00
parent 5f6603f044
commit 6386601e3e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -98,35 +98,22 @@
<td>@Model.Job.ExceptionSource</td>
</tr>
}
@if (Model.Job is { StackTrace: not null, Exception: null })
{
<tr>
<td>
Exception stack trace
<br/>
<button onclick="copyElementToClipboard('exceptionStackTrace')">Copy to clipboard</button>
</td>
<td>
<pre><code id="exceptionStackTrace">@Model.Job.StackTrace</code></pre>
</td>
</tr>
}
@if (Model.Job.Exception != null)
{
<tr>
<td>
Exception details
<br/>
<button onclick="copyElementToClipboard('exceptionDetails')">Copy to clipboard</button>
</td>
<td>
<pre><code id="exceptionDetails">@Model.Job.Exception</code></pre>
</td>
</tr>
}
</tbody>
</table>
@if (Model.Job is { StackTrace: not null, Exception: null })
{
<h3>Exception stack trace</h3>
<pre><code id="exceptionStackTrace">@Model.Job.StackTrace</code></pre>
<button onclick="copyElementToClipboard('exceptionStackTrace')">Copy to clipboard</button>
}
@if (Model.Job.Exception != null)
{
<h3>Exception details</h3>
<pre><code id="exceptionDetails">@Model.Job.Exception</code></pre>
<button onclick="copyElementToClipboard('exceptionDetails')">Copy to clipboard</button>
}
<h3>Job data</h3>
@{
@ -224,4 +211,4 @@
}
}
<button onclick="copyToClipboard(document.getElementById('data').textContent);">Copy to clipboard</button>
<button onclick="copyElementToClipboard('data');">Copy to clipboard</button>