mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 10:50:58 +00:00
style(ui): apply formatter output
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user