mirror of https://github.com/openclaw/openclaw.git
style(ui): apply formatter output
This commit is contained in:
parent
69e67a764d
commit
894f57a4ce
|
|
@ -40,11 +40,13 @@ function renderExecBody(request: ExecApprovalRequestPayload) {
|
|||
|
||||
function renderPluginBody(active: ExecApprovalRequest) {
|
||||
return html`
|
||||
${active.pluginDescription
|
||||
? html`<pre class="exec-approval-command mono" style="white-space:pre-wrap">
|
||||
${
|
||||
active.pluginDescription
|
||||
? html`<pre class="exec-approval-command mono" style="white-space:pre-wrap">
|
||||
${active.pluginDescription}</pre
|
||||
>`
|
||||
: nothing}
|
||||
: nothing
|
||||
}
|
||||
<div class="exec-approval-meta">
|
||||
${renderMetaRow("Severity", active.pluginSeverity)}
|
||||
${renderMetaRow("Plugin", active.pluginId)} ${renderMetaRow("Agent", active.request.agentId)}
|
||||
|
|
@ -81,9 +83,11 @@ export function renderExecApprovalPrompt(state: AppViewState) {
|
|||
}
|
||||
</div>
|
||||
${isPlugin ? renderPluginBody(active) : renderExecBody(request)}
|
||||
${state.execApprovalError
|
||||
? html`<div class="exec-approval-error">${state.execApprovalError}</div>`
|
||||
: nothing}
|
||||
${
|
||||
state.execApprovalError
|
||||
? html`<div class="exec-approval-error">${state.execApprovalError}</div>`
|
||||
: nothing
|
||||
}
|
||||
<div class="exec-approval-actions">
|
||||
<button
|
||||
class="btn primary"
|
||||
|
|
|
|||
Loading…
Reference in New Issue